denehoffman
ganesh
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Remove `Engine` and add `Input` associated type to `CostFunction`
#77
Merged
Comparing
api-without-engine
(
401955f
) with
refactor-unified-api
(
488c1e9
)
CodSpeed Performance Gauge
+18%
Improvement
3
Untouched
9
New
6
No successful run was found on
refactor-unified-api
(
495e8b2
) during the generation of this report, so
488c1e9
was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
New
Untouched
18 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock[5]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead
CodSpeed Performance Gauge
+18%
208.5 µs
177.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock[4]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead
CodSpeed Performance Gauge
+16%
170 µs
146.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock (adaptive)[4]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead
CodSpeed Performance Gauge
+13%
201.1 µs
177.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
gradient[64]
benches/derivatives.rs::benches::bench_derivatives::derivatives
CodSpeed Performance Gauge
N/A
N/A
54.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
gradient[16]
benches/derivatives.rs::benches::bench_derivatives::derivatives
CodSpeed Performance Gauge
N/A
N/A
7.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
hessian[16]
benches/derivatives.rs::benches::bench_derivatives::derivatives
CodSpeed Performance Gauge
N/A
N/A
143.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
gradient[256]
benches/derivatives.rs::benches::bench_derivatives::derivatives
CodSpeed Performance Gauge
N/A
N/A
751.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
hessian[64]
benches/derivatives.rs::benches::bench_derivatives::derivatives
CodSpeed Performance Gauge
N/A
N/A
6.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
hessian[256]
benches/derivatives.rs::benches::bench_derivatives::derivatives
CodSpeed Performance Gauge
N/A
N/A
383.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock[2]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead
CodSpeed Performance Gauge
+10%
128.4 µs
117.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock (adaptive)[2]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead
CodSpeed Performance Gauge
+10%
128.4 µs
117.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock[3]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead
CodSpeed Performance Gauge
+9%
243.9 µs
222.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock (adaptive)[3]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead
CodSpeed Performance Gauge
+9%
288.8 µs
265.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock (adaptive)[5]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead
CodSpeed Performance Gauge
+8%
799 µs
739.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock[4]
benches/lbfgsb_benchmark.rs::benches::lbfgsb_benchmark::LBFGSB
CodSpeed Performance Gauge
+5%
2.1 ms
2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock[5]
benches/lbfgsb_benchmark.rs::benches::lbfgsb_benchmark::LBFGSB
CodSpeed Performance Gauge
+4%
4.2 ms
4.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock[3]
benches/lbfgsb_benchmark.rs::benches::lbfgsb_benchmark::LBFGSB
CodSpeed Performance Gauge
+4%
1.4 ms
1.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Rosenbrock[2]
benches/lbfgsb_benchmark.rs::benches::lbfgsb_benchmark::LBFGSB
CodSpeed Performance Gauge
+2%
3.1 ms
3 ms
Commits
Click on a commit to change the comparison range
Base
refactor-unified-api
488c1e9
+17.53%
fix: revert to previous Hessian implementation which is only about 1.7% slower and will be more accurate for x ~> 0
401955f
5 months ago
by denehoffman
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs