SPB Git

Repository Public MIT

benchmark-results.md 3.3 KB 44 lines markdown

1Machine: Apple M5 Max, 18 cores, macOS Version 27.0 (Build 26A5425a)2Build: release, single thread, wall-clock median of repeated runs34| Benchmark | Median | Best | Runs | Notes |5|---|--:|--:|--:|---|6| Parse + evaluate `25 × 4` | 38.8 µs | 17.8 µs | 2000 |  |7| Parse + evaluate `0.1 + 0.2` (exact rational) | 50.9 µs | 25.1 µs | 2000 |  |8| Parse + evaluate `sin(30)^2 + sqrt(2) * ln(10)` | 92.7 µs | 42.6 µs | 2000 |  |9| Full run with explanation and verification `(1234.5 + 6) * 7 / 8 - 9^2` | 99.8 µs | 53.0 µs | 2000 |  |10| `100!` exact (158 digits) | 82.8 µs | 36.7 µs | 2000 |  |11| `2000!` exact (5 736 digits) | 689.1 µs | 479.4 µs | 351 |  |12| `sum(1/k^2, k, 1, 1000)` exact rational sum, falls back to double past 8192 bits | 152.50 ms | 145.32 ms | 7 |  |13| `integral(exp(-x^2), x, -inf, inf)` adaptive quadrature | 80.4 µs | 39.1 µs | 2000 |  |14| Compiled function: 100 000 evaluations of sin(x)² + e^(−x/3)·√|x| | 4.10 ms | 3.73 ms | 60 |  |15| Determinant 20 × 20, exact rational arithmetic | 8.81 ms | 8.11 ms | 28 |  |16| Determinant 50 × 50, exact rational arithmetic (decimal entries) | 437.67 ms | 410.47 ms | 5 |  |17| Determinant 50 × 50, floating point | 10.82 ms | 9.44 ms | 23 |  |18| Inverse 50 × 50, floating point (with residual check) | 27.33 ms | 25.45 ms | 9 |  |19| Product 50 × 50 · 50 × 50, floating point | 13.52 ms | 12.51 ms | 18 |  |20| Eigenvalues 50 × 50 (LAPACK dgeev) | 4.14 ms | 3.66 ms | 59 |  |21| Workspace: open and compute 501 linked cells | 289.38 ms | 281.07 ms | 5 |  |22| Workspace: move a slider that 500 cells depend on | 1.21 s | 1.08 s | 5 |  |23| Workspace: edit a leaf cell (1 cell recalculated out of 501) | 14.04 ms | 12.39 ms | 16 |  |24| Workspace: move a slider that 500 floating-point cells depend on | 17.48 ms | 14.85 ms | 14 |  |25| Workspace: move the DiscountRate slider of a 14-cell NPV sheet | 1.59 ms | 1.08 ms | 119 |  |26| Workspace: export 501 cells to LaTeX | 680.08 ms | 466.75 ms | 5 |  |27| Mortgage payment (Canadian convention) | 17.6 µs | 16.1 µs | 2000 |  |28| Amortization schedule, 300 payments, cent-exact | 2.82 ms | 1.59 ms | 45 |  |29| IRR of 241 cash flows (all real roots searched) | 17.5 µs | 16.8 µs | 2000 |  |30| Black–Scholes–Merton price | 33.1 µs | 30.6 µs | 2000 |  |31| Implied volatility | 21.0 µs | 19.2 µs | 2000 |  |32| American put, binomial tree, 1 000 steps | 529.8 µs | 503.6 µs | 224 |  |33| Monte Carlo, 1 000 000 normal trials, seeded | 561.69 ms | 519.90 ms | 7 |  |34| Multiple regression, 10 000 rows × 3 predictors, with diagnostics | 2.21 ms | 1.46 ms | 48 |  |35| Quantile of 10 000 values | 586.7 µs | 540.2 µs | 84 |  |36| Student t quantile (inverse incomplete beta) | 2.0 µs | 1.9 µs | 2000 |  |37| Graph: sample `sin(x)` at 1200 × 800 with discontinuity detection | 177.5 µs | 141.9 µs | 774 |  |38| Graph: sample `tan(x)` at 1200 × 800 with discontinuity detection | 683.8 µs | 446.8 µs | 207 |  |39| Graph: sample `1/x` at 1200 × 800 with discontinuity detection | 236.8 µs | 175.5 µs | 690 |  |40| Graph: sample `sin(100x)` at 1200 × 800 with discontinuity detection | 2.26 ms | 2.03 ms | 26 |  |41| Graph: implicit curve x² + y² = 25 at 1200 × 800 | 5.75 ms | 3.85 ms | 19 |  |42| Graph: 60 × 60 surface mesh of sin(x)·cos(y) with normals | 670.5 µs | 658.1 µs | 172 |  |43| Unit conversion, exact decimal (mi → km) | 2.4 µs | 2.3 µs | 2000 |  |44
Files main
Menu

Theme