feat: add benchmark suite with criterion and standard test functions

Add micro-benchmarks for TPE, Random, and Grid samplers with varying
history sizes, end-to-end optimization benchmarks on Sphere and
Rosenbrock, and a convergence tracking example that outputs CSV data.
Includes 6 standard test functions (Sphere, Rosenbrock, Rastrigin,
Ackley, Branin, Hartmann6) with correctness tests at known optima.
This commit is contained in:
Manuel Raimann
2026-02-11 19:05:33 +01:00
parent f3941a4b3e
commit b36137bc96
6 changed files with 492 additions and 0 deletions
+9
View File
@@ -40,6 +40,15 @@ cma-es = ["dep:nalgebra"]
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
optimizer-derive = { version = "0.1.0", path = "optimizer-derive" }
serde_json = "1"
criterion = { version = "0.8", features = ["html_reports"] }
[[bench]]
name = "samplers"
harness = false
[[bench]]
name = "optimization"
harness = false
[[example]]
name = "async_api_optimization"