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
Convolution body1.28↗⚠ reg
AD gradientsn/a→n/a
Evaluationn/a→n/a
time_to_load3.33↗⚠ 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.

Convolution body ​

Time ​

Benchmarkv0.1.0f9e33274da4f9a...v0.1.0 / f9e33274da4f9a...
BLAS axpy per lag0.784 ± 0.0084 μs0.782 ± 0.01 μs1 ± 0.017
native axpy per lag0.496 ± 0.0047 μs0.501 ± 0.0065 μs0.991 ± 0.016
package0.783 ± 0.0098 μs0.353 ± 0.0043 μs2.22 ± 0.039

Memory ​

Benchmarkv0.1.0f9e33274da4f9a...v0.1.0 / f9e33274da4f9a...
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

AD gradients ​

Time ​

Benchmarkv0.1.0f9e33274da4f9a...v0.1.0 / f9e33274da4f9a...
Matrix bvd_renewal_call T200_L20_S1/Mooncake reverse19.9 ± 0.67 μs
Matrix bvd_patches_call T200_L20_S1/ForwardDiff1.54 ± 0.7 ms
Matrix tv_piecewise_primary_k5 T200_L20_S1/Mooncake reverse18.6 ± 7.6 μs
Matrix delay_fixed T200_L20_S1/ForwardDiff0.311 ± 0.05 ms
Matrix conv_fixed T200_L20_S1/ForwardDiff0.294 ± 0.049 ms
Matrix delay_fixed T200_L20_S1/Mooncake reverse9.25 ± 3.7 μs
Matrix random_walk T30_L1_S1/ForwardDiff6.84 ± 4 μs
Matrix overview T200_L20_S3/ForwardDiff3.13 ± 0.56 ms
Matrix bvd_patch T200_L20_S5/Mooncake reverse0.102 ± 0.0073 ms
Matrix tv_piecewise_secondary_k5 T200_L20_S1/Mooncake reverse18.2 ± 7.6 μs
Matrix random_walk T30_L1_S1/Enzyme reverse0.296 ± 0.16 μs
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/Enzyme reverse17.8 ± 5.3 μs
Matrix bvd_patches_call T200_L20_S1/Mooncake reverse0.0452 ± 0.0024 ms
Matrix bvd_renewal_call T200_L20_S1/Enzyme reverse15.4 ± 1.3 μs
Matrix renewal T200_L20_S1/Mooncake reverse11.6 ± 3.7 μs
Matrix bvd_patches_call T200_L20_S5/Enzyme reverse0.091 ± 0.017 ms
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/ForwardDiff0.592 ± 0.18 ms
Matrix tv_piecewise_primary_k5 T200_L20_S1/ForwardDiff0.519 ± 0.17 ms
Matrix conv_fixed T200_L20_S1/Enzyme reverse5.52 ± 3.1 μs
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/ForwardDiff0.683 ± 0.21 ms
Matrix bvd_patch T200_L20_S5/Enzyme reverse0.076 ± 0.015 ms
Matrix strata_mixing T200_L20_S5/Enzyme reverse0.0556 ± 0.0042 ms
Matrix tv_piecewise_secondary_k5 T200_L20_S1/ForwardDiff0.541 ± 0.19 ms
Matrix bvd_patch T200_L20_S5/ForwardDiff12.7 ± 1.7 ms
Matrix tv_piecewise_primary_k5 T200_L20_S1/Enzyme reverse14.3 ± 4.8 μs
Matrix conv_fixed T200_L20_S1/Mooncake reverse9.82 ± 4.2 μs
Matrix bvd_renewal_call T200_L20_S1/ForwardDiff0.581 ± 0.095 ms
Matrix overview T200_L20_S3/Enzyme reverse0.0374 ± 0.013 ms
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/Enzyme reverse19.9 ± 4.9 μs
Matrix overview T200_L20_S3/Mooncake reverse0.0495 ± 0.0039 ms
Matrix renewal T200_L20_S1/Enzyme reverse7.58 ± 0.56 μs
Matrix renewal T200_L20_S1/ForwardDiff0.358 ± 0.054 ms
Matrix strata_mixing T200_L20_S5/ForwardDiff12.3 ± 1.3 ms
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/Mooncake reverse24.4 ± 7.2 μs
Matrix bvd_patches_call T200_L20_S5/ForwardDiff0.0398 ± 0.003 s
Matrix bvd_patches_call T200_L20_S1/Enzyme reverse0.0379 ± 0.002 ms
Matrix strata_mixing T200_L20_S5/Mooncake reverse0.0881 ± 0.0036 ms
Matrix delay_fixed T200_L20_S1/Enzyme reverse5.43 ± 3.2 μs
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/Mooncake reverse23.2 ± 7.7 μs
Matrix random_walk T30_L1_S1/Mooncake reverse0.883 ± 0.077 μs
Matrix bvd_patches_call T200_L20_S5/Mooncake reverse0.136 ± 0.0066 ms
Matrix tv_piecewise_secondary_k5 T200_L20_S1/Enzyme reverse13.6 ± 5 μs

Memory ​

Benchmarkv0.1.0f9e33274da4f9a...v0.1.0 / f9e33274da4f9a...
Matrix bvd_renewal_call T200_L20_S1/Mooncake reverse0.055 k allocs: 30.1 kB
Matrix bvd_patches_call T200_L20_S1/ForwardDiff1.89 k allocs: 7.91 MB
Matrix tv_piecewise_primary_k5 T200_L20_S1/Mooncake reverse0.089 k allocs: 0.035 MB
Matrix delay_fixed T200_L20_S1/ForwardDiff0.182 k allocs: 0.842 MB
Matrix conv_fixed T200_L20_S1/ForwardDiff0.23 k allocs: 1.18 MB
Matrix delay_fixed T200_L20_S1/Mooncake reverse24 allocs: 15.9 kB
Matrix random_walk T30_L1_S1/ForwardDiff20 allocs: 17.6 kB
Matrix overview T200_L20_S3/ForwardDiff1.05 k allocs: 9.33 MB
Matrix bvd_patch T200_L20_S5/Mooncake reverse0.159 k allocs: 0.13 MB
Matrix tv_piecewise_secondary_k5 T200_L20_S1/Mooncake reverse0.089 k allocs: 0.035 MB
Matrix random_walk T30_L1_S1/Enzyme reverse9 allocs: 1.47 kB
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/Enzyme reverse0.105 k allocs: 29.9 kB
Matrix bvd_patches_call T200_L20_S1/Mooncake reverse0.164 k allocs: 0.0598 MB
Matrix bvd_renewal_call T200_L20_S1/Enzyme reverse0.053 k allocs: 28.5 kB
Matrix renewal T200_L20_S1/Mooncake reverse0.032 k allocs: 16.7 kB
Matrix bvd_patches_call T200_L20_S5/Enzyme reverse0.154 k allocs: 0.288 MB
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/ForwardDiff1.52 k allocs: 2.54 MB
Matrix tv_piecewise_primary_k5 T200_L20_S1/ForwardDiff0.953 k allocs: 2.76 MB
Matrix conv_fixed T200_L20_S1/Enzyme reverse29 allocs: 14.4 kB
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/ForwardDiff1.52 k allocs: 2.65 MB
Matrix bvd_patch T200_L20_S5/Enzyme reverse0.12 k allocs: 0.135 MB
Matrix strata_mixing T200_L20_S5/Enzyme reverse0.084 k allocs: 0.134 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 conv_fixed T200_L20_S1/Mooncake reverse0.036 k allocs: 18.4 kB
Matrix bvd_renewal_call T200_L20_S1/ForwardDiff0.465 k allocs: 2.03 MB
Matrix overview T200_L20_S3/Enzyme reverse0.092 k allocs: 0.074 MB
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/Enzyme reverse0.105 k allocs: 28.9 kB
Matrix overview T200_L20_S3/Mooncake reverse0.079 k allocs: 0.0695 MB
Matrix renewal T200_L20_S1/Enzyme reverse31 allocs: 20.1 kB
Matrix renewal T200_L20_S1/ForwardDiff0.322 k allocs: 1.32 MB
Matrix strata_mixing T200_L20_S5/ForwardDiff2.31 k allocs: 30.9 MB
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1/Mooncake reverse0.116 k allocs: 0.034 MB
Matrix bvd_patches_call T200_L20_S5/ForwardDiff9.02 k allocs: 0.182 GB
Matrix bvd_patches_call T200_L20_S1/Enzyme reverse0.134 k allocs: 0.0635 MB
Matrix strata_mixing T200_L20_S5/Mooncake reverse0.134 k allocs: 0.12 MB
Matrix delay_fixed T200_L20_S1/Enzyme reverse24 allocs: 16 kB
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1/Mooncake reverse0.116 k allocs: 0.0355 MB
Matrix random_walk T30_L1_S1/Mooncake reverse14 allocs: 1.86 kB
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

Evaluation ​

Time ​

Benchmarkv0.1.0f9e33274da4f9a...v0.1.0 / f9e33274da4f9a...
Matrix delay_fixed T200_L20_S11.02 ± 0.31 μs
Matrix bvd_patches_call T200_L20_S50.0581 ± 0.0018 ms
Matrix strata_mixing T200_L20_S531.2 ± 1.3 μs
Matrix overview T200_L20_S319.3 ± 1.6 μs
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S16.85 ± 0.86 μs
Matrix conv_fixed T200_L20_S12.29 ± 1.5 μs
Matrix tv_piecewise_secondary_k5 T200_L20_S12.31 ± 2.8 μs
Matrix bvd_patch T200_L20_S50.0448 ± 0.0016 ms
Matrix bvd_patches_call T200_L20_S119.3 ± 4.6 μs
Matrix random_walk T30_L1_S10.11 ± 0.011 μs
Matrix bvd_renewal_call T200_L20_S18.95 ± 0.27 μs
Matrix renewal T200_L20_S13.68 ± 0.17 μs
Matrix tv_piecewise_primary_k5 T200_L20_S12.79 ± 2.9 μs
Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S14.92 ± 3.1 μs

Memory ​

Benchmarkv0.1.0f9e33274da4f9a...v0.1.0 / f9e33274da4f9a...
Matrix delay_fixed T200_L20_S19 allocs: 5.33 kB
Matrix bvd_patches_call T200_L20_S50.045 k allocs: 0.0821 MB
Matrix strata_mixing T200_L20_S523 allocs: 0.0331 MB
Matrix overview T200_L20_S322 allocs: 20.1 kB
Matrix tv_piecewise_renewal_primary_k5 T200_L20_S10.041 k allocs: 11.3 kB
Matrix conv_fixed T200_L20_S19 allocs: 5.14 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 bvd_patches_call T200_L20_S10.038 k allocs: 17.9 kB
Matrix random_walk T30_L1_S14 allocs: 0.594 kB
Matrix bvd_renewal_call T200_L20_S115 allocs: 7.73 kB
Matrix renewal T200_L20_S111 allocs: 5.53 kB
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

time_to_load ​

Time ​

Benchmarkv0.1.0f9e33274da4f9a...v0.1.0 / f9e33274da4f9a...
time_to_load0.202 ± 0.012 s0.301 ± 0.0042 s0.672 ± 0.04

Memory ​

Benchmarkv0.1.0f9e33274da4f9a...v0.1.0 / f9e33274da4f9a...
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 1 plot</summary>

plot_ComposableRecurrences.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.