The proof runs on your hardware, not ours.
Five commands. One question: does exact integer arithmetic actually beat floating-point, and by how much? This CLI suite benchmarks Eisenstein E12 arithmetic against IEEE 754 floats for hexagonal lattice operations — drift, iteration, snapping, norms — and prints the results in a table you can read.
No cherry-picked numbers. No "up to X% faster" hedging. You run it, you see the numbers, you decide.
cargo install --git https://github.com/SuperInstance/eisenstein-bencheisenstein-bench drift [--rotations N] Rotate N times, compare E12 vs float drift
eisenstein-bench disk [--radius N] Benchmark HexDisk iteration at radius N
eisenstein-bench snap [--iterations N] Benchmark angle snapping throughput
eisenstein-bench norm [--iterations N] Benchmark norm vs float hypot
eisenstein-bench full [--json] Run everything, print summary table
Defaults: 10,000 rotations, radius 1,000, 100,000 iterations. Override any of them with flags.
$ eisenstein-bench full
┌────────────────┬──────────────┬──────────────────────────────────────────┐
│ Benchmark │ Time │ Detail │
├────────────────┼──────────────┼──────────────────────────────────────────┤
│ drift (rotate) │ 0µs │ 10,000 rotations of (5,0) │
│ drift (float) │ 19µs │ drift: 0.000000000000002 │
│ disk │ 5.5ms │ radius=1,000, 3,003,001 pts │
│ snap │ 32.6ms │ 100,000 calls │
│ norm │ 110µs │ 100,000 calls, sum=1,092,277,422 │
└────────────────┴──────────────┴──────────────────────────────────────────┘
The drift row is the whole argument in two numbers. E12 rotation: zero drift. Float rotation: 2×10⁻¹⁵ after ten thousand steps. That gap only widens as you rotate more. The bench lets you crank the rotation count and watch it happen.
Disk iteration at radius 1,000 walks three million points in 5.5ms. Snap comes in at 326 nanoseconds per call. Norm at 1 nanosecond per call. These are the numbers that matter when you're shipping a real-time system.
The eisenstein crate claims zero drift. Benchmarks in a paper are one thing. Benchmarks you can run on your own silicon, right now, are another. This tool exists because claims should be reproducible.
Float rotation accumulates error — that's not a bug, it's the nature of IEEE 754. E12 rotation is exact by construction, because Eisenstein integers are a ring and D₆ symmetry is algebraic. No approximation involved. The benchmark just shows you the difference, honestly.
Part of the Eisenstein hex integer ecosystem — exact hex arithmetic from microcontrollers to browsers to formal verification.
| Project | Description |
|---|---|
| eisenstein | Core Rust crate — exact hex arithmetic, zero deps |
| eisenstein-c | Same math, for microcontrollers. 1KB .text. |
| eisenstein-wasm | Same math, for browsers and Node.js |
| eisenstein-bench | Benchmark all implementations side-by-side |
| eisenstein-fuzz | Property-based fuzzing across the ecosystem |
| eisenstein-do178c | DO-178C formally verified for safety-critical systems |
| arm-neon-eisenstein-bench | 4× parallel hex math on ARM NEON |
| hexgrid-gen | Code generation for any language in the ecosystem |
| constraint-theory-core | Production constraint framework built on Eisenstein math |
| flux-lucid | Unified intent-directed ecosystem orchestrator |
Next → Break it if you can: eisenstein-fuzz
MIT