Napkin Math
Based on https://github.com/sirupsen/napkin-math/tree/master 07/24/2026
76 flashcards · Other · by Denny Ferrassoli
For Sequential Memory R/W (64 bytes) operation What is the latency?
Latency: 0.5 ns
For Sequential Memory R/W (64 bytes) operation - Single Thread What are the throughput, time for 1 MiB, and time for 1 GiB?
Throughput: 20 GiB/s 1 MiB: 50 μs 1 GiB: 50 ms
For Sequential Memory R/W (64 bytes) operation - Threaded What are the throughput, time for 1 MiB, and time for 1 GiB?
Throughput: 200 GiB/s 1 MiB: 5 μs 1 GiB: 5 ms
For Network Same-Zone What are the throughput, time for 1 MiB, and time for 1 GiB?
Throughput: 10 GiB/s 1 MiB: 100 μs 1 GiB: 100 ms
For Network Same-Zone - Inside VPC What are the throughput, time for 1 MiB, and time for 1 GiB?
Throughput: 10 GiB/s 1 MiB: 100 μs 1 GiB: 100 ms
For Network Same-Zone - Outside VPC What are the throughput, time for 1 MiB, and time for 1 GiB?
Throughput: 3 GiB/s 1 MiB: 300 μs 1 GiB: 300 ms
For Hashing, not crypto-safe (64 bytes) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 10 ns Throughput: 5 GiB/s 1 MiB: 200 μs 1 GiB: 200 ms
For Random Memory R/W (64 bytes) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 20 ns Throughput: 3 GiB/s 1 MiB: 300 μs 1 GiB: 300 ms
For Fast Serialization [8] [9] † What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: N/A Throughput: 1 GiB/s 1 MiB: 1 ms 1 GiB: 1 s
For Fast Deserialization [8] [9] † What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: N/A Throughput: 1 GiB/s 1 MiB: 1 ms 1 GiB: 1 s
For System Call What is the latency?
Latency: 300 ns
For Hashing, crypto-safe (64 bytes) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 100 ns Throughput: 1 GiB/s 1 MiB: 1 ms 1 GiB: 1 s
For Sequential SSD read (8 KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 1 μs Throughput: 8 GiB/s 1 MiB: 100 μs 1 GiB: 100 ms
For Context Switch [1] [2] What is the latency?
Latency: 10 μs
For Sequential SSD write, -fsync (8KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 2 μs Throughput: 3 GiB/s 1 MiB: 300 μs 1 GiB: 300 ms
For TCP Echo Server (32 KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 50 μs Throughput: 500 MiB/s 1 MiB: 2 ms 1 GiB: 2 s
For Random SSD Read (8 KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 100 μs Throughput: 70 MiB/s 1 MiB: 15 ms 1 GiB: 15 s
For Decompression [11] What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: N/A Throughput: 1 GiB/s 1 MiB: 1 ms 1 GiB: 1 s
For Compression [11] What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: N/A Throughput: 500 MiB/s 1 MiB: 2 ms 1 GiB: 2 s
For Sorting (64-bit integers) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: N/A Throughput: 500 MiB/s 1 MiB: 2 ms 1 GiB: 2 s
For Proxy: Envoy/ProxySQL/Nginx/HAProxy What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 50 μs Throughput: ? 1 MiB: ? 1 GiB: ?
For Network within same region What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 250 μs Throughput: 2 GiB/s 1 MiB: 500 μs 1 GiB: 500 ms
For Premium network within zone/VPC What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 250 μs Throughput: 25 GiB/s 1 MiB: 50 μs 1 GiB: 40 ms
For Sequential SSD write, +fsync (8KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 300 μs Throughput: 30 MiB/s 1 MiB: 30 ms 1 GiB: 30 s
For {MySQL, Memcached, Redis, ..} Query What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 500 μs Throughput: ? 1 MiB: ? 1 GiB: ?
For Serialization [8] [9] † What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: N/A Throughput: 100 MiB/s 1 MiB: 10 ms 1 GiB: 10 s
For Deserialization [8] [9] † What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: N/A Throughput: 100 MiB/s 1 MiB: 10 ms 1 GiB: 10 s
For Sequential HDD Read (8 KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 10 ms Throughput: 250 MiB/s 1 MiB: 2 ms 1 GiB: 2 s
For Random HDD Read (8 KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 10 ms Throughput: 0.7 MiB/s 1 MiB: 2 s 1 GiB: 30 m
For Blob Storage GET, if-not-match 304 What is the latency?
Latency: 30 ms
For Blob Storage GET, 1 conn (128KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 80 ms Throughput: 100 MiB/s 1 MiB: 10 ms 1 GiB: 10 s
For Blob Storage GET, n conn (offsets) What are the latency and throughput?
Latency: 80 ms Throughput: NW limit
For Blob Storage LIST What is the latency?
Latency: 100 ms
For Blob Storage PUT, 1 conn (128KiB) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 200 ms Throughput: 100 MiB/s 1 MiB: 10 ms 1 GiB: 10 s
For Blob Storage PUT, n conn (multipart) What are the latency, throughput, time for 1 MiB, and time for 1 GiB?
Latency: 200 ms Throughput: NW limit 1 MiB: 10 ms 1 GiB: 10 s
For Network between regions [6] What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: [Varies][i] Throughput: 25 MiB/s 1 MiB: 40 ms 1 GiB: 40 s
For Network NA Central <-> East What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 25 ms Throughput: 25 MiB/s 1 MiB: 40 ms 1 GiB: 40 s
For Network NA Central <-> West What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 40 ms Throughput: 25 MiB/s 1 MiB: 40 ms 1 GiB: 40 s
For Network NA East <-> West What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 60 ms Throughput: 25 MiB/s 1 MiB: 40 ms 1 GiB: 40 s
For Network EU West <-> NA East What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 80 ms Throughput: 25 MiB/s 1 MiB: 40 ms 1 GiB: 40 s
For Network EU West <-> NA Central What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 100 ms Throughput: 25 MiB/s 1 MiB: 40 ms 1 GiB: 40 s
For Network NA West <-> Singapore What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 180 ms Throughput: 25 MiB/s 1 MiB: 40 ms 1 GiB: 40 s
For Network EU West <-> Singapore What are the latency, throughput, time to transfer 1 MiB, and time to transfer 1 GiB?
Latency: 160 ms Throughput: 25 MiB/s 1 MiB: 40 ms 1 GiB: 40 s
For CPU What are the prices for 1 unit: on-demand $ / month, 1y commit $ / month, spot $ / month, and hourly spot $?
On-demand: $15/month 1y commit: $10/month Spot: $2/month Hourly spot: $0.005
For GPU What are the prices for 1 unit: on-demand $ / month, 1y commit $ / month, spot $ / month, and hourly spot $?
On-demand: $5000/month 1y commit: $3000/month Spot: $1500/month Hourly spot: $2
For Memory What are the prices for 1 GiB: on-demand $ / month, 1y commit $ / month, spot $ / month, and hourly spot $?
On-demand: $2/month 1y commit: $1/month Spot: $0.2/month Hourly spot: $0.0005
For Warehouse Storage What is the monthly cost for 1 GiB?
Monthly cost: $0.02 per GiB
For Blob (S3, GCS) storage What is the monthly cost for 1 GiB?
Monthly cost: $0.02 per GiB
For Zonal HDD storage What is the monthly cost for 1 GiB?
Monthly cost: $0.05 per GiB
For Ephemeral SSD storage What are the prices for 1 GiB: on-demand $ / month, 1y commit $ / month, and spot $ / month?
On-demand: $0.08/month 1y commit: $0.05/month Spot: $0.05/month
For Ephemeral SSD storage What is the hourly spot price for 1 GiB?
Hourly spot: $0.07
For Regional HDD storage What is the monthly cost for 1 GiB?
Monthly cost: $0.1 per GiB
For Zonal SSD storage What is the monthly cost for 1 GiB?
Monthly cost: $0.2 per GiB
For Regional SSD storage What is the monthly cost for 1 GiB?
Monthly cost: $0.35 per GiB
For Same Zone networking What is the network cost for transferring 1 GiB?
Cost: $0 per GiB
For Blob networking What is the network cost for transferring 1 GiB?
Cost: $0 per GiB
For Ingress networking What is the network cost for transferring 1 GiB?
Cost: $0 per GiB
For L4 LB networking What is the network cost for transferring 1 GiB?
Cost: $0.008 per GiB
For Inter-Zone networking What is the network cost for transferring 1 GiB?
Cost: $0.01 per GiB
For Inter-Region networking What is the network cost for transferring 1 GiB?
Cost: $0.02 per GiB
For Internet Egress What is the network cost for transferring 1 GiB?
Cost: $0.1 per GiB
For CDN Egress What is the cost for transferring 1 GiB?
Cost: $0.05 per GiB
For CDN Fill What is the cost for transferring 1 GiB?
Cost: $0.01 per GiB
For Warehouse Query What is the cost for querying 1 GiB of data?
Cost: $0.005 per GiB
For Logs/Traces What is the monthly cost for storing 1 GiB?
Monthly cost: $0.5 per GiB
For Metrics What is the monthly cost for 1000 metrics?
Monthly cost: $20
For EKM Keys What is the monthly cost for 1 key?
Monthly cost: $1
For Reads in blob operations What are the costs for 1M operations and for 1000 operations?
1M reads: $0.4 1000 reads: $0.0004
For Writes in blob operations What are the costs for 1M operations and for 1000 operations?
1M writes: $5 1000 writes: $0.005
For EKM Encryption in blob operations What are the costs for 1M operations and for 1000 operations?
1M encryptions: $3 1000 encryptions: $0.003
What is the compression ratio for HTML?
Compression ratio: 2–3×
What is the compression ratio for English text?
Compression ratio: 2–4×
What is the compression ratio for Source Code?
Compression ratio: 2–4×
What is the compression ratio for Executables?
Compression ratio: 2–3×
What is the compression ratio for RPC payloads?
Compression ratio: 5–10×
What is the compression ratio or effect for SSL?
Effect: −2%