Skip to content

Performance over time ​

How ComposableRecurrences's benchmark suites have moved across recent revisions: an overall summary across the package first, then one section per suite.

Summary ​

Each benchmark suite's headline timing across recent revisions.

SuiteMedian ratioTrendStatus
AD gradients7.58↗⚠ reg
Convolution body1.29↗⚠ reg
Evaluation1.04↗ok
time_to_load2.55↗⚠ reg

Ratio: latest vs oldest shown revision (1.00 = no change, higher = slower/larger). ⚠ reg = at/above the regression threshold.

Overall benchmark trend

Tables below show the most recent 3 revisions, columns labelled by commit date.

AD gradients ​

Time ​

Benchmarkv0.1.079b6198ddd9155...v0.1.0 / 79b6198ddd9155...
Matrix bvd_renewal_call T200_L20_S1/Enzyme reverse0.0957 ± 0.016 ms27.8 ± 8.8 μs3.44 ± 1.2
Matrix bvd_renewal_call T200_L20_S1/ForwardDiff3.26 ± 0.031 ms0.62 ± 0.021 ms5.26 ± 0.18
Matrix bvd_renewal_call T200_L20_S1/Mooncake reverse0.143 ± 0.016 ms0.0393 ± 0.011 ms3.63 ± 1.1
Matrix conv_fixed T200_L20_S1/Enzyme reverse17.7 ± 7.6 μs3.57 ± 4.4 μs4.95 ± 6.5
Matrix conv_fixed T200_L20_S1/ForwardDiff0.372 ± 0.029 ms0.277 ± 0.015 ms1.34 ± 0.13
Matrix conv_fixed T200_L20_S1/Mooncake reverse0.0603 ± 0.017 ms14.1 ± 2.1 μs4.27 ± 1.3
Matrix delay_fixed T200_L20_S1/Enzyme reverse16.9 ± 6 μs7.36 ± 5.7 μs2.29 ± 2
Matrix delay_fixed T200_L20_S1/ForwardDiff0.388 ± 0.025 ms0.341 ± 0.012 ms1.14 ± 0.084
Matrix delay_fixed T200_L20_S1/Mooncake reverse0.0597 ± 0.023 ms14.5 ± 2.9 μs4.13 ± 1.8
Matrix overview T200_L20_S3/Enzyme reverse0.522 ± 0.068 ms0.0531 ± 0.025 ms9.83 ± 4.9
Matrix overview T200_L20_S3/ForwardDiff11 ± 1.2 ms3.46 ± 0.14 ms3.17 ± 0.37
Matrix overview T200_L20_S3/Mooncake reverse0.563 ± 0.037 ms0.0743 ± 0.0027 ms7.58 ± 0.57
Matrix random_walk T30_L1_S1/Enzyme reverse5.34 ± 0.34 μs0.27 ± 0.02 μs19.8 ± 1.9
Matrix random_walk T30_L1_S1/ForwardDiff5.82 ± 0.65 μs2.46 ± 0.74 μs2.36 ± 0.76
Matrix random_walk T30_L1_S1/Mooncake reverse13.7 ± 0.85 μs1.19 ± 0.06 μs11.5 ± 0.92
Matrix renewal T200_L20_S1/Enzyme reverse0.0411 ± 0.011 ms9.87 ± 7 μs4.16 ± 3.2
Matrix renewal T200_L20_S1/ForwardDiff2.01 ± 0.038 ms0.375 ± 0.016 ms5.35 ± 0.25
Matrix renewal T200_L20_S1/Mooncake reverse0.0908 ± 0.022 ms22.7 ± 7.4 μs4.01 ± 1.6
Matrix strata_mixing T200_L20_S5/Enzyme reverse0.664 ± 0.095 ms0.0886 ± 0.016 ms7.49 ± 1.8
Matrix strata_mixing T200_L20_S5/ForwardDiff0.0559 ± 0.0046 s12.9 ± 1.8 ms4.33 ± 0.71
Matrix strata_mixing T200_L20_S5/Mooncake reverse0.716 ± 0.027 ms0.137 ± 0.0091 ms5.23 ± 0.4
Matrix bvd_patches_call T200_L20_S1/ForwardDiff1.66 ± 0.089 ms
Matrix bvd_patch T200_L20_S5/Mooncake reverse0.165 ± 0.013 ms
Matrix tv_piecewise_secondary_k5 T200_L20_S1/Mooncake reverse27.6 ± 3.7 μs
Matrix bvd_patches_call T200_L20_S1/Mooncake reverse0.0706 ± 0.0016 ms
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/ForwardDiff0.643 ± 0.03 ms
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/ForwardDiff0.632 ± 0.036 ms
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/Mooncake reverse0.0388 ± 0.012 ms
Matrix bvd_patches_call T200_L20_S1/Enzyme reverse0.0497 ± 0.0011 ms
Matrix bvd_patches_call T200_L20_S5/Mooncake reverse0.204 ± 0.013 ms
Matrix tv_piecewise_secondary_k5 T200_L20_S1/Enzyme reverse17.1 ± 7.2 μs
Matrix tv_piecewise_primary_k5 T200_L20_S1/Mooncake reverse28.8 ± 3.8 μs
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/Enzyme reverse22.6 ± 8.9 μs
Matrix bvd_patches_call T200_L20_S5/Enzyme reverse0.148 ± 0.01 ms
Matrix tv_piecewise_primary_k5 T200_L20_S1/ForwardDiff0.526 ± 0.033 ms
Matrix bvd_patch T200_L20_S5/Enzyme reverse0.112 ± 0.013 ms
Matrix tv_piecewise_secondary_k5 T200_L20_S1/ForwardDiff0.52 ± 0.031 ms
Matrix bvd_patch T200_L20_S5/ForwardDiff15.5 ± 2.2 ms
Matrix tv_piecewise_primary_k5 T200_L20_S1/Enzyme reverse17.8 ± 7.3 μs
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/Enzyme reverse26.1 ± 8.6 μs
Matrix bvd_patches_call T200_L20_S5/ForwardDiff0.0507 ± 0.0016 s
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/Mooncake reverse0.0364 ± 0.014 ms

Memory ​

Benchmarkv0.1.079b6198ddd9155...v0.1.0 / 79b6198ddd9155...
Matrix bvd_renewal_call T200_L20_S1/Enzyme reverse0.118 k allocs: 0.0363 MB0.053 k allocs: 28.5 kB1.31
Matrix bvd_renewal_call T200_L20_S1/ForwardDiff0.949 k allocs: 2.53 MB0.465 k allocs: 2.03 MB1.25
Matrix bvd_renewal_call T200_L20_S1/Mooncake reverse1.91 k allocs: 0.0821 MB0.057 k allocs: 0.0325 MB2.53
Matrix conv_fixed T200_L20_S1/Enzyme reverse0.046 k allocs: 25.8 kB29 allocs: 14.4 kB1.78
Matrix conv_fixed T200_L20_S1/ForwardDiff0.344 k allocs: 1.93 MB0.23 k allocs: 1.18 MB1.64
Matrix conv_fixed T200_L20_S1/Mooncake reverse0.328 k allocs: 0.062 MB0.035 k allocs: 18.4 kB3.45
Matrix delay_fixed T200_L20_S1/Enzyme reverse0.044 k allocs: 23.1 kB24 allocs: 16 kB1.44
Matrix delay_fixed T200_L20_S1/ForwardDiff0.302 k allocs: 1.68 MB0.182 k allocs: 0.842 MB1.99
Matrix delay_fixed T200_L20_S1/Mooncake reverse0.328 k allocs: 0.0566 MB24 allocs: 15.9 kB3.64
Matrix overview T200_L20_S3/Enzyme reverse1.51 k allocs: 0.235 MB0.091 k allocs: 0.074 MB3.18
Matrix overview T200_L20_S3/ForwardDiff2.71 k allocs: 24.9 MB1.05 k allocs: 9.33 MB2.66
Matrix overview T200_L20_S3/Mooncake reverse5.84 k allocs: 0.353 MB0.077 k allocs: 0.0694 MB5.09
Matrix random_walk T30_L1_S1/Enzyme reverse0.033 k allocs: 4.02 kB9 allocs: 1.47 kB2.73
Matrix random_walk T30_L1_S1/ForwardDiff0.056 k allocs: 28.6 kB20 allocs: 17.6 kB1.63
Matrix random_walk T30_L1_S1/Mooncake reverse0.327 k allocs: 11.7 kB14 allocs: 1.86 kB6.31
Matrix renewal T200_L20_S1/Enzyme reverse0.043 k allocs: 26.8 kB31 allocs: 20.1 kB1.33
Matrix renewal T200_L20_S1/ForwardDiff0.522 k allocs: 1.77 MB0.322 k allocs: 1.32 MB1.34
Matrix renewal T200_L20_S1/Mooncake reverse1.7 k allocs: 0.0669 MB0.034 k allocs: 19.8 kB3.45
Matrix strata_mixing T200_L20_S5/Enzyme reverse1.35 k allocs: 0.267 MB0.083 k allocs: 0.134 MB1.99
Matrix strata_mixing T200_L20_S5/ForwardDiff3.46 k allocs: 0.0507 GB2.31 k allocs: 30.9 MB1.68
Matrix strata_mixing T200_L20_S5/Mooncake reverse8.37 k allocs: 0.35 MB0.133 k allocs: 0.12 MB2.92
Matrix bvd_patches_call T200_L20_S1/ForwardDiff1.89 k allocs: 7.91 MB
Matrix bvd_patch T200_L20_S5/Mooncake reverse0.158 k allocs: 0.129 MB
Matrix tv_piecewise_secondary_k5 T200_L20_S1/Mooncake reverse0.089 k allocs: 0.035 MB
Matrix bvd_patches_call T200_L20_S1/Mooncake reverse0.164 k allocs: 0.0598 MB
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/ForwardDiff1.52 k allocs: 2.54 MB
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/ForwardDiff1.52 k allocs: 2.65 MB
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/Mooncake reverse0.118 k allocs: 0.0369 MB
Matrix bvd_patches_call T200_L20_S1/Enzyme reverse0.134 k allocs: 0.0635 MB
Matrix bvd_patches_call T200_L20_S5/Mooncake reverse0.187 k allocs: 0.262 MB
Matrix tv_piecewise_secondary_k5 T200_L20_S1/Enzyme reverse0.077 k allocs: 26.8 kB
Matrix tv_piecewise_primary_k5 T200_L20_S1/Mooncake reverse0.089 k allocs: 0.035 MB
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/Enzyme reverse0.105 k allocs: 29.9 kB
Matrix bvd_patches_call T200_L20_S5/Enzyme reverse0.154 k allocs: 0.288 MB
Matrix tv_piecewise_primary_k5 T200_L20_S1/ForwardDiff0.953 k allocs: 2.76 MB
Matrix bvd_patch T200_L20_S5/Enzyme reverse0.119 k allocs: 0.135 MB
Matrix tv_piecewise_secondary_k5 T200_L20_S1/ForwardDiff0.953 k allocs: 2.76 MB
Matrix bvd_patch T200_L20_S5/ForwardDiff3.36 k allocs: 31.4 MB
Matrix tv_piecewise_primary_k5 T200_L20_S1/Enzyme reverse0.077 k allocs: 26.8 kB
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/Enzyme reverse0.105 k allocs: 28.9 kB
Matrix bvd_patches_call T200_L20_S5/ForwardDiff9.02 k allocs: 0.182 GB
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/Mooncake reverse0.118 k allocs: 0.0386 MB

Convolution body ​

Time ​

Benchmarkv0.1.079b6198ddd9155...v0.1.0 / 79b6198ddd9155...
BLAS axpy per lag0.785 ± 0.015 μs0.778 ± 0.0075 μs1.01 ± 0.022
native axpy per lag0.494 ± 0.006 μs0.491 ± 0.0055 μs1 ± 0.017
package0.786 ± 0.016 μs0.352 ± 0.0059 μs2.23 ± 0.059

Memory ​

Benchmarkv0.1.079b6198ddd9155...v0.1.0 / 79b6198ddd9155...
BLAS axpy per lag0 allocs: 0 B0 allocs: 0 B
native axpy per lag0 allocs: 0 B0 allocs: 0 B
package0 allocs: 0 B0 allocs: 0 B

Evaluation ​

Time ​

Benchmarkv0.1.079b6198ddd9155...v0.1.0 / 79b6198ddd9155...
Matrix bvd_renewal_call T200_L20_S114.5 ± 3.3 μs8.94 ± 0.3 μs1.62 ± 0.37
Matrix conv_fixed T200_L20_S11.6 ± 3 μs2.4 ± 1.4 μs0.667 ± 1.3
Matrix delay_fixed T200_L20_S14.31 ± 1.6 μs2.58 ± 1.6 μs1.67 ± 1.2
Matrix overview T200_L20_S30.0394 ± 0.00085 ms19 ± 0.98 μs2.08 ± 0.12
Matrix random_walk T30_L1_S10.541 ± 0.14 μs0.11 ± 0.03 μs4.92 ± 1.8
Matrix renewal T200_L20_S17.65 ± 1.9 μs3.67 ± 0.17 μs2.09 ± 0.52
Matrix strata_mixing T200_L20_S50.0472 ± 0.00076 ms31.1 ± 9.8 μs1.52 ± 0.48
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S17.71 ± 4.4 μs
Matrix tv_piecewise_secondary_k5 T200_L20_S12.42 ± 2.9 μs
Matrix bvd_patch T200_L20_S50.045 ± 0.0099 ms
Matrix tv_piecewise_primary_k5 T200_L20_S13.14 ± 3 μs
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S17.98 ± 2.9 μs
Matrix bvd_patches_call T200_L20_S50.0597 ± 0.0028 ms
Matrix bvd_patches_call T200_L20_S122.8 ± 4.8 μs

Memory ​

Benchmarkv0.1.079b6198ddd9155...v0.1.0 / 79b6198ddd9155...
Matrix bvd_renewal_call T200_L20_S10.035 k allocs: 10.1 kB15 allocs: 7.73 kB1.31
Matrix conv_fixed T200_L20_S112 allocs: 8.38 kB9 allocs: 5.14 kB1.63
Matrix delay_fixed T200_L20_S110 allocs: 6.92 kB9 allocs: 5.33 kB1.3
Matrix overview T200_L20_S30.052 k allocs: 0.0399 MB22 allocs: 20.1 kB2.03
Matrix random_walk T30_L1_S115 allocs: 1.19 kB4 allocs: 0.594 kB2
Matrix renewal T200_L20_S119 allocs: 7.48 kB11 allocs: 5.53 kB1.35
Matrix strata_mixing T200_L20_S50.044 k allocs: 0.0432 MB23 allocs: 0.0331 MB1.3
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S10.041 k allocs: 11.3 kB
Matrix tv_piecewise_secondary_k5 T200_L20_S127 allocs: 9.73 kB
Matrix bvd_patch T200_L20_S50.033 k allocs: 0.0338 MB
Matrix tv_piecewise_primary_k5 T200_L20_S127 allocs: 9.73 kB
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S10.041 k allocs: 11.7 kB
Matrix bvd_patches_call T200_L20_S50.045 k allocs: 0.0821 MB
Matrix bvd_patches_call T200_L20_S10.038 k allocs: 17.9 kB

time_to_load ​

Time ​

Benchmarkv0.1.079b6198ddd9155...v0.1.0 / 79b6198ddd9155...
time_to_load0.238 ± 0.0013 s0.392 ± 0.0021 s0.608 ± 0.0046

Memory ​

Benchmarkv0.1.079b6198ddd9155...v0.1.0 / 79b6198ddd9155...
time_to_load0.2 k allocs: 11.8 kB0.2 k allocs: 11.8 kB1

Skipped & broken benchmarks ​

No known skipped or broken benchmarks.

Per-benchmark timelines ​

<details> <summary>Show 2 plots</summary>

plot_ComposableRecurrences_1.pngplot_ComposableRecurrences_2.png

</details>

About these benchmarks ​

The suite times a fixed set of cases of the benchmark matrix at one size each. The "Evaluation" group is the forward run of each case. The "AD gradients" group is its gradient on ForwardDiff, Mooncake reverse and Enzyme reverse. The "Convolution body" group is the lag sum of a convolution against two loops over lags.

Each entry takes one evaluation per sample for up to a second. The runs are on shared GitHub-hosted runners, so a single point of the history carries their noise.

Performance compares the package with hand-written loops and gradients, and gives the cost of each gradient relative to the forward run. Run the suite locally with julia --project=benchmark benchmark/run.jl.