Skip to content

Commit

Permalink
performance
Browse files Browse the repository at this point in the history
  • Loading branch information
jrenaud90 committed Mar 30, 2023
1 parent 1419fae commit 738953f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 16 deletions.
20 changes: 10 additions & 10 deletions Benchmarks/CyRK - SciPy Comparison.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## 2023

### v0.5.3
#### v0.5.3

Performance
- Removed dynamic optional arguments from `cyrk_ode`. Now it checks if those arguments are just set to None.
- Removed dynamic optional arguments from `cyrk_ode`. Now it checks if those arguments are set to None.

Other Changes
- Changed `cyrk_ode` arguments to const to avoid memoryview buffer problems.
- Changed `cyrk_ode` arguments to const to avoid memoryview buffer problems. (Change made by [David Meyer](https://github.com/dihm))

#### v0.5.1 and v0.5.2

Expand All @@ -18,7 +18,7 @@ Other Changes

New Features
- `cyrk_ode` now supports both float and complex-typed y and dydt functions.
- Resolves [issue 3](https://github.com/jrenaud90/CyRK/issues/3)). (Fix made by [David Meyer](https://github.com/dihm))
- Resolves [issue 3](https://github.com/jrenaud90/CyRK/issues/3)). (Feature added by [David Meyer](https://github.com/dihm))

Performance
- Converted various ints to `short`s, `char`s, or `Py_ssize_t`. `Py_ssize_t` is recommended by Cython for loop integers to better support 64-bit architecture.
Expand Down
1 change: 1 addition & 0 deletions Performance/cyrk_performance-DOP853.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ CyRK Version, Run-on Date, cython (avg), cython (std), numba (avg), numba (std
0.4.0a0.dev7, 19/01/2023 00:17:19,1.282,0.009,0.2141,0.0004,12.9353,0.0725,2.0163,0.0234,0.6384,0.0009,0.1277,0.0007,6.065,0.0233,1.1282,0.0027,2.1301,0.0075,0.3451,0.0027,29.1336,0.1329,4.4394,0.0702,2.4673,0.006,0.6437,0.0034,33.9701,0.3546,8.4945,0.0814
0.5.0a3.dev0, 28/03/2023 12:42:54, 1.1010, 0.0252, 0.1920, 0.0004, 10.5338, 0.0175, 1.7754, 0.0045, 0.5119, 0.0080, 0.1061, 0.0001, 4.7160, 0.0584, 0.8671, 0.0027, 1.5785, 0.0215, 0.3171, 0.0151, 24.3099, 2.8578, 4.0586, 0.0455, 1.9298, 0.0493, 0.5502, 0.0066, 25.5103, 0.0692, 7.3534, 0.0191
0.5.0a4.dev1, 28/03/2023 15:03:36, 1.1174, 0.0288, 0.2091, 0.0126, 10.6654, 0.0716, 1.8152, 0.0304, 0.5364, 0.0278, 0.1082, 0.0024, 4.7510, 0.0480, 0.8862, 0.0099, 1.5926, 0.0258, 0.3166, 0.0222, 21.2931, 0.1835, 3.9808, 0.0297, 1.9513, 0.0068, 0.5477, 0.0008, 25.9224, 0.0799, 7.2492, 0.0525
0.5.3, 29/03/2023 18:54:36, 1.1012, 0.0167, 0.2044, 0.0082, 10.7259, 0.0116, 1.8770, 0.0371, 0.5242, 0.0063, 0.1105, 0.0049, 4.8917, 0.1128, 0.8805, 0.0110, 1.6723, 0.0122, 0.3094, 0.0068, 21.7800, 0.0313, 4.0337, 0.1086, 2.0237, 0.0332, 0.5803, 0.0223, 26.9174, 0.4865, 7.6904, 0.1039
1 change: 1 addition & 0 deletions Performance/cyrk_performance-RK23.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ CyRK Version, Run-on Date, cython (avg), cython (std), numba (avg), numba (std
0.4.0a0.dev7, 19/01/2023 00:15:45,6.9328,0.0419,1.0807,0.0225,70.2419,1.2946,12.7816,0.3986,4.5039,0.012,0.775,0.0066,45.4632,0.1552,7.4912,0.054,8.2474,0.0137,1.2234,0.0151,142.2633,0.4843,28.3285,0.4725,59.7768,86.0594,1231.1615,2128.4877,172.6841,0.9151,44.3725,0.7991
0.5.0a3.dev0, 28/03/2023 12:41:14, 56.6555, 87.5021, 0.8593, 0.0037, 60.7470, 0.6072, 9.5173, 0.0707, 54.8074, 87.2917, 0.6171, 0.0381, 37.7550, 0.2152, 5.8001, 0.0471, 59.0615, 89.1476, 1.1360, 0.0656, 119.4322, 6.3822, 21.4468, 0.8531, 56.7765, 84.3508, 1150.4060, 1989.3127, 140.5121, 0.2122, 38.2787, 0.2288
0.5.0a4.dev1, 28/03/2023 15:01:57, 59.3399, 91.9592, 0.8934, 0.0096, 63.7064, 1.3348, 12.8172, 0.4395, 53.3725, 85.1252, 0.6898, 0.0364, 40.9606, 0.8638, 6.0094, 0.0111, 6.9182, 0.0561, 1.0516, 0.0078, 119.1599, 0.1658, 24.0576, 0.5495, 57.3195, 84.8271, 1236.1289, 2137.0688, 147.8034, 2.0147, 40.1323, 0.5919
0.5.3, 29/03/2023 18:52:55, 60.0504, 92.5845, 0.9770, 0.0467, 64.0294, 1.7440, 11.0573, 0.6993, 3.9994, 0.0556, 0.6373, 0.0171, 40.7177, 1.2901, 6.3661, 0.0820, 55.8262, 84.3719, 1.0868, 0.0180, 120.5543, 2.1751, 24.5811, 0.6446, 58.4356, 86.3555, 1228.3480, 2124.0493, 147.4642, 0.8251, 41.4584, 0.5506
1 change: 1 addition & 0 deletions Performance/cyrk_performance-RK45.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ CyRK Version, Run-on Date, cython (avg), cython (std), numba (avg), numba (std
0.4.0a0.dev7, 19/01/2023 00:16:47,1.6215,0.007,0.2658,0.0012,15.9618,0.0617,2.4543,0.0102,1.2047,0.0078,0.2206,0.0013,11.5133,0.032,1.9925,0.0192,2.4698,0.0055,0.4073,0.0049,36.6541,0.1025,5.4567,0.0308,2.9369,0.0051,0.7251,0.0146,43.2334,0.1386,10.229,0.0706
0.5.0a3.dev0, 28/03/2023 12:42:18, 1.4355, 0.0038, 0.2273, 0.0006, 13.8784, 0.0545, 2.0894, 0.0244, 1.0099, 0.0026, 0.1802, 0.0007, 9.5253, 0.0467, 1.5740, 0.0116, 1.9879, 0.0359, 0.3394, 0.0033, 28.5659, 0.1013, 4.7250, 0.0673, 2.3823, 0.0177, 0.6134, 0.0056, 34.5347, 0.1064, 8.6572, 0.0694
0.5.0a4.dev1, 28/03/2023 15:03:00, 1.6564, 0.0976, 0.2369, 0.0042, 14.2637, 0.2702, 2.4129, 0.2290, 1.0572, 0.0308, 0.1929, 0.0102, 9.8867, 0.2293, 1.6442, 0.0303, 2.0550, 0.0588, 0.3415, 0.0025, 29.0485, 0.0882, 4.6925, 0.0758, 2.4380, 0.0456, 0.6565, 0.0238, 35.9287, 0.5693, 9.5987, 0.8587
0.5.3, 29/03/2023 18:53:59, 1.4950, 0.0220, 0.2382, 0.0043, 14.3460, 0.2391, 2.1512, 0.0124, 1.0725, 0.0588, 0.1908, 0.0059, 9.9641, 0.2233, 1.6407, 0.0169, 2.0980, 0.0337, 0.3471, 0.0034, 30.9480, 0.4268, 5.0067, 0.1861, 2.4647, 0.0475, 0.6474, 0.0015, 37.4663, 0.9320, 9.5284, 0.2498
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

---

<a href="https://github.com/jrenaud90/CyRK/releases"><img src="https://img.shields.io/badge/CyRK-0.5.1 Alpha-orange" alt="CyRK Version 0.5.1 Alpha" /></a>
<a href="https://github.com/jrenaud90/CyRK/releases"><img src="https://img.shields.io/badge/CyRK-0.5.3 Alpha-orange" alt="CyRK Version 0.5.3 Alpha" /></a>


**Runge-Kutta ODE Integrator Implemented in Cython and Numba**
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name='CyRK'
version = '0.5.3a0.dev2'
version = '0.5.3'
description='Runge-Kutta ODE Integrator Implemented in Cython and Numba.'
authors= [
{name = 'Joe P. Renaud', email = '[email protected]'}
Expand Down

0 comments on commit 738953f

Please sign in to comment.