Measure Option Valley against the strongest public baselines on your own quotes, on your own machine. Nothing leaves the machine; the report holds aggregates only (timings, error statistics, hashes) unless you pass --keep-values.
1. Build the baselines on your machine
bash bench/lbr/build_baselines.sh bench/build # needs g++ with OpenMP, curl, 7z; QuantLib headers optional pip install QuantLib py_vollib_vectorized mpmath # optional baselines + the 50-digit reference
It downloads Peter Jäckel's Let's Be Rational (revision 1520) from jaeckel.org, checks its SHA-256 and builds it unmodified twice: -O3 -march=native and the author's own flags (-O3 -Ofast -ffp-contract=fast -march=native), both with OpenMP across quotes. Greeks after LBR are measured both in closed form (LBR's own Vega and Volga) and by finite differences.
2. Run on your quotes
python bench/ov_bench.py quotes.parquet --map price=mid_fwd,F=forward,K=strike,T=tau,type=cp --out mydesk python bench/ov_bench.py quotes.csv --spot --map price=mid,S=spot,r=rate,q=div # spot-style inputs python bench/ov_bench.py american.csv --american # American IV vs QuantLib
| column | meaning |
|---|---|
| price | forward style: undiscounted price (or give D and the market price); spot style: market price |
| F / S, r, q | forward; or spot, rate and dividend yield (continuous) |
| K, T | strike, time to expiry in years |
| type | C/P, call/put or 1/0 |
3. What the report shows
- ns per quote, all threads and one thread, for Option Valley (with and without Greeks), both LBR builds, LBR + closed-form and finite-difference Greeks, QuantLib C++ and Python, py_vollib_vectorized.
- Accuracy of every engine against a 50-digit reference (mpmath, all cores) on a sample of your quotes: largest, p99 and median absolute error, largest relative error, quotes off by more than 1e-12, NaNs.
- SHA-256 of every engine's output: run the kit on two machines and compare; Option Valley's hashes match.
Fair-comparison rules: same inputs to every engine, each baseline at its fastest flags on your hardware, accuracy measured against the same independent reference. We exclude weak baselines rather than beat them.
4. Try it first on synthetic data
python bench/make_sample.py sample.csv 1000000 && python bench/ov_bench.py sample.csv