Basin

Search documentation

Search the guides, solvers, and migration docs.

  • Guide
  • Visualizer
  • Benchmarks

Benchmarks

  • Overview
  • Comparing solvers
  • Comparing libraries
  • Choosing a backend
Navigation

Benchmarks

  • Overview
  • Comparing solvers
  • Comparing libraries
  • Choosing a backend

Benchmarks

The benchmark suite looks at three choices you make when solving an optimization problem: the algorithm, its implementation, and the linear-algebra backend. Each comparison answers a different question. These guides explain the setup, walk through the results, and describe the limits of each measurement.

Comparing solvers

Which algorithm makes useful progress on my kind of problem? The solver comparisons run Basin’s optimizers from shared starting points and plot the objective gap against elapsed time. They show both the speed of convergence and the effect of the starting point.

Start here when choosing between algorithms. Read the results alongside the solver selection guide, which covers derivative requirements, constraints, and problem structure.

Comparing libraries

How does Basin compare with other implementations? The library comparisons examine individual solvers, including L-BFGS, Nelder–Mead, Levenberg–Marquardt, and COBYLA. Each section explains what the harness matches and where the implementations differ.

These curves measure the complete optimization path recorded by each harness. Differences in line searches, stopping rules, and numerical safeguards can affect both the work performed and the result.

Choosing a backend

How does backend choice affect the cost of a solve as the problem grows? The backend comparisons hold the solver and problem fixed while varying the parameter and matrix types. They cover vector operations, dense matrix methods, and sparse least squares.

Use these results to compare backends within a case. The cases use different problems and stopping rules, so their solve times do not rank the algorithms.

Basin v3.2.0 — numerical optimization for Rust.

GitHub docs.rs crates.io