LedgerMath

Continuous NapkinMath

Open-source benchmarks, run on real cloud machines every day.

Inspired by Simon Eskildsen's Napkin Math.

Latest runs

  1. 5 machines · 359 Runs · 98.0% pass
  2. 2 machines · 124 Runs · 100% pass
  3. 5 machines · 359 Runs · 98.6% pass

Timetable

AWS us-east-2 · · prices 2026-12-03

Machines
Subsystem
OperationP50P99 (tail)RateUnit costHost
CPU & Memory
64 B1 thread
76.69 ns—834.5 MB/s$0.00000798 /1M opsc8i.2xlarge
1 MiB1 thread
————c8i.2xlarge
1 GiB64 B lines1 thread
213.0 ms—5.041 GB/s—c8i.2xlarge
1 GiB1 threadSIMD
53.89 ms—19.93 GB/s$0.0186 /GB/s·hc8i.2xlarge
1 GiBall threadsSIMD
14.94 ms—71.88 GB/s$0.00522 /GB/s·hc8i.2xlarge
1 GiBall threadsSIMD
————c8i.2xlarge
8 bits10⁶ blocks
24.30 ns—42.13 GB/s$0.00904 /GB/s·hc8i.2xlarge
1 MiB1 thread
1.680 ms—624.0 MB/s$0.175 /1M opsc8i.2xlarge
64 MiB1 threadpast the caches
————c8i.2xlarge
Operating system
1 thread+1 idle threadone CPU
13.64 ns—$0.00000142 /1M opsc8i.2xlarge
2 threadsdistinct cores
48.92 ns—$0.00000493 /1M opsc8i.2xlarge
getpid
60.95 ns—$0.00000636 /1M opsc8i.2xlarge
32 KiB127.0.0.1
46.34 µs—707.1 MB/s—c8i.2xlarge
Local NVMe SSD
O_DIRECTQD=18 KiB
119.3 µs142.3 µs×1.2$0.839 /10k IOPS·hi4i.2xlarge
fdatasyncQD=18 KiB
30.34 µs47.38 µs×1.6$0.209 /10k IOPS·hi4i.2xlarge
RWF_DSYNCQD=44 KiB
41.22 µs114.2 µs×2.8377.5 MB/s$0.0747 /10k IOPS·hi4i.2xlarge
RWF_DSYNCQD=644 KiB
577.5 µs667.6 µs×1.2451.1 MB/s$0.0623 /10k IOPS·hi4i.2xlarge
O_DIRECTQD=644 KiB
317.4 µs477.2 µs×1.5819.2 MB/s$0.0343 /10k IOPS·hi4i.2xlarge
buffered8 KiBpage cache dropped
7.134 µs—1.148 GB/s$0.597 /GB/s·hi4i.2xlarge
O_DIRECTQD=64256 KiB
————i4i.2xlarge
Networked disk (EBS)
root gp3 3kO_DIRECTQD=18 KiB
342.0 µs733.3 µs×2.1$1.25 /10k IOPS·hc8i.2xlarge
root gp3 3kfdatasyncQD=18 KiB
978.9 µs1.221 ms×1.2$3.8 /10k IOPS·hc8i.2xlarge
root gp3 3kRWF_DSYNCQD=644 KiB
21.36 ms25.56 ms×1.212.29 MB/s$1.25 /10k IOPS·hc8i.2xlarge
root gp3 3kO_DIRECTQD=644 KiB
21.10 ms23.46 ms×1.112.28 MB/s$1.25 /10k IOPS·hc8i.2xlarge
root gp3 125 MiB/sO_DIRECTQD=64256 KiB
————c8i.2xlarge
gp3 16k1000 MiB/sO_DIRECTQD=64256 KiB
————m6id.2xlarge
gp3 16kO_DIRECTQD=644 KiB
3.949 ms4.489 ms×1.165.54 MB/s$0.384 /10k IOPS·hm6id.2xlarge
io2 16kO_DIRECTQD=644 KiB
3.981 ms4.424 ms×1.165.54 MB/s$1.19 /10k IOPS·hm6id.2xlarge
io2 32kO_DIRECTQD=644 KiB
2.007 ms2.277 ms×1.1131.1 MB/s$1.04 /10k IOPS·hm6id.2xlarge
Network (EC2 & inter-Region)All 7 regions →
same AZ64 B
78.46 µs116.2 µs×1.5$0 /GB movedc8g.2xlarge
cross AZ64 B
203.8 µs284.7 µs×1.4$0.02 /GB movedc8g.2xlarge
same AZ4 streams
154.9 ms—1.742 GB/s$0.186 /GB/s·hc8g.2xlarge
cross AZ4 streams
83.59 ms—1.607 GB/s$0.02 /GB movedc8g.2xlarge
us-east-2 → eu-west-1TCP handshake
78.12 ms91.75 ms×1.2—c8i.2xlarge
us-east-2 → eu-west-1TLS handshake
81.26 ms94.91 ms×1.2—c8i.2xlarge
Object storage (S3)All 7 regions →
One Zonereused4 KiB object
3.064 ms4.555 ms×1.5$0.03 /1M reqc8i.2xlarge
One Zonereused4 KiB
4.489 ms5.538 ms×1.2$0.03 /1M reqc8i.2xlarge
One Zonereused4 KiB
7.635 ms12.52 ms×1.6$1.13 /1M reqc8i.2xlarge
Standardreused4 KiB object
9.896 ms32.13 ms×3.2$0.4 /1M reqc8i.2xlarge
Standardreused4 KiBrepeated key
22.94 ms33.42 ms×1.5$0.4 /1M reqc8i.2xlarge
Standardreused4 KiB48h agedread once
——$0.4 /1M reqc8i.2xlarge
StandardIf-None-Match4 KiB
24.51 ms31.33 ms×1.3$5 /1M reqc8i.2xlarge
Standardreused16 MiBone connection
———c8i.2xlarge
Standardsame region16 MiB64 conns
509.6 ms2.188 s×4.31.829 GB/s$0.205 /GB/s·hc8i.2xlarge
One Zonesame region16 MiB64 conns
526.4 ms1.028 s×2.01.813 GB/s$0.179 /GB/s·hc8g.2xlarge
Standardus-east-2 → eu-west-116 MiB16 conns
566.2 ms1.132 s×2.0363.2 MB/s$1.03 /GB/s·hc8i.2xlarge

LedgerMath began as a port of Simon Eskildsen's Napkin Math.