Avatar for the denehoffman user
denehoffman
ganesh
BlogDocsChangelog

Improvements and Optimizations

#50Merged
Comparing
development
(
67afb7b
) with
main
(
f3254dd
)
CodSpeed Performance Gauge
N/A
Improvements
0
Regressions
0
Untouched
0
New
20
Dropped
8
Ignored
0

Benchmarks

New

Rosenbrock[2]
benches/bfgs_benchmark.rs::benches::bfgs_benchmark::BFGS::Rosenbrock[2]
CodSpeed Performance Gauge
N/A
N/A
51.7 ms
Rosenbrock[3]
benches/bfgs_benchmark.rs::benches::bfgs_benchmark::BFGS::Rosenbrock[3]
CodSpeed Performance Gauge
N/A
N/A
26.3 ms
Rosenbrock[4]
benches/bfgs_benchmark.rs::benches::bfgs_benchmark::BFGS::Rosenbrock[4]
CodSpeed Performance Gauge
N/A
N/A
47.1 ms
Rosenbrock[5]
benches/bfgs_benchmark.rs::benches::bfgs_benchmark::BFGS::Rosenbrock[5]
CodSpeed Performance Gauge
N/A
N/A
10.3 ms
Rosenbrock[2]
benches/lbfgs_benchmark.rs::benches::lbfgs_benchmark::LBFGS::Rosenbrock[2]
CodSpeed Performance Gauge
N/A
N/A
149 µs
Rosenbrock[3]
benches/lbfgs_benchmark.rs::benches::lbfgs_benchmark::LBFGS::Rosenbrock[3]
CodSpeed Performance Gauge
N/A
N/A
251.9 µs
Rosenbrock[4]
benches/lbfgs_benchmark.rs::benches::lbfgs_benchmark::LBFGS::Rosenbrock[4]
CodSpeed Performance Gauge
N/A
N/A
276.1 µs
Rosenbrock[5]
benches/lbfgs_benchmark.rs::benches::lbfgs_benchmark::LBFGS::Rosenbrock[5]
CodSpeed Performance Gauge
N/A
N/A
445.8 µs
Rosenbrock[2]
benches/lbfgsb_benchmark.rs::benches::lbfgsb_benchmark::LBFGSB::Rosenbrock[2]
CodSpeed Performance Gauge
N/A
N/A
5.4 ms
Rosenbrock[3]
benches/lbfgsb_benchmark.rs::benches::lbfgsb_benchmark::LBFGSB::Rosenbrock[3]
CodSpeed Performance Gauge
N/A
N/A
3.5 ms
Rosenbrock[4]
benches/lbfgsb_benchmark.rs::benches::lbfgsb_benchmark::LBFGSB::Rosenbrock[4]
CodSpeed Performance Gauge
N/A
N/A
3.7 ms
Rosenbrock[5]
benches/lbfgsb_benchmark.rs::benches::lbfgsb_benchmark::LBFGSB::Rosenbrock[5]
CodSpeed Performance Gauge
N/A
N/A
5 ms
Rosenbrock (adaptive)[2]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead::Rosenbrock (adaptive)[2]
CodSpeed Performance Gauge
N/A
N/A
127 µs
Rosenbrock (adaptive)[3]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead::Rosenbrock (adaptive)[3]
CodSpeed Performance Gauge
N/A
N/A
303.4 µs
Rosenbrock (adaptive)[4]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead::Rosenbrock (adaptive)[4]
CodSpeed Performance Gauge
N/A
N/A
218.5 µs
Rosenbrock (adaptive)[5]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead::Rosenbrock (adaptive)[5]
CodSpeed Performance Gauge
N/A
N/A
947.2 µs
Rosenbrock[2]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead::Rosenbrock[2]
CodSpeed Performance Gauge
N/A
N/A
126.8 µs
Rosenbrock[3]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead::Rosenbrock[3]
CodSpeed Performance Gauge
N/A
N/A
256 µs
Rosenbrock[4]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead::Rosenbrock[4]
CodSpeed Performance Gauge
N/A
N/A
186.1 µs
Rosenbrock[5]
benches/nelder_mead_benchmark.rs::benches::nelder_mead_benchmark::Nelder Mead::Rosenbrock[5]
CodSpeed Performance Gauge
N/A
N/A
237.5 µs

Passed

Adaptive[2]Missing
benches/rosenbrock_benchmark.rs::benches::rosenbrock_benchmark::nelder-mead: rosenbrock::Adaptive[2]
CodSpeed Performance Gauge
N/A
122.1 µs
N/A
Adaptive[3]Missing
benches/rosenbrock_benchmark.rs::benches::rosenbrock_benchmark::nelder-mead: rosenbrock::Adaptive[3]
CodSpeed Performance Gauge
N/A
291.9 µs
N/A
Adaptive[4]Missing
benches/rosenbrock_benchmark.rs::benches::rosenbrock_benchmark::nelder-mead: rosenbrock::Adaptive[4]
CodSpeed Performance Gauge
N/A
211.6 µs
N/A
Adaptive[5]Missing
benches/rosenbrock_benchmark.rs::benches::rosenbrock_benchmark::nelder-mead: rosenbrock::Adaptive[5]
CodSpeed Performance Gauge
N/A
914.6 µs
N/A
Standard[2]Missing
benches/rosenbrock_benchmark.rs::benches::rosenbrock_benchmark::nelder-mead: rosenbrock::Standard[2]
CodSpeed Performance Gauge
N/A
121.8 µs
N/A
Standard[3]Missing
benches/rosenbrock_benchmark.rs::benches::rosenbrock_benchmark::nelder-mead: rosenbrock::Standard[3]
CodSpeed Performance Gauge
N/A
246.1 µs
N/A
Standard[4]Missing
benches/rosenbrock_benchmark.rs::benches::rosenbrock_benchmark::nelder-mead: rosenbrock::Standard[4]
CodSpeed Performance Gauge
N/A
180.4 µs
N/A
Standard[5]Missing
benches/rosenbrock_benchmark.rs::benches::rosenbrock_benchmark::nelder-mead: rosenbrock::Standard[5]
CodSpeed Performance Gauge
N/A
230.8 µs
N/A

Commits

Click on a commit to change the comparison range
Base
main
f3254dd
-4%
refactor: get rid of generics I'm sick of using generics to describe the only two kinds of values that should be used for "T" (f32 and f64). I've refactored this crate to just use a feature flag (`f32`) for this rather than generics. Who in their right mind is mixing f64s and f32s in an analysis anyway? If that is needed, just compile two different programs and be done with it. This cleans up the code enormously, makes it much more readable, gets rid of the `num` dependency entirely, and improves benchmark performance by up to 80% in some cases.
96c605a
1 month ago
by denehoffman
Home Terms PrivacyDocs