Skip to content

Instantly share code, notes, and snippets.

@alpeware
Created December 9, 2019 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpeware/c23b0612dccfaeced74c0adee538c392 to your computer and use it in GitHub Desktop.
Save alpeware/c23b0612dccfaeced74c0adee538c392 to your computer and use it in GitHub Desktop.
Latency Numbers Every Programmer Should Know by Year
// console session to get numbers by year
// https://people.eecs.berkeley.edu/~rcs/research/interactive_latency.html
// https://docs.google.com/spreadsheets/d/11T5Ufh7Y_fmm2d2ZRSUDDHpRULPooPjwzl7Abh2KkjE/edit#gid=0
(() => {
var h = "year,ns,L1,branch,L2,mutex,ns100,mem,micro,snappy,tenMicro,network,ssdRandom,mbMem,rtt,ms,mbSSD,seek,mbDisk,wan";
var y = [...Array(2021-1990).keys()].map((e) => 1990 + e);
var m = y.map((e) => {var a = [e]; year = e; getMetrics().map((f) => a.push(f.ns)); return a;})
return h + "\n" + m.map((e) => e.join(", ")).join("\n");})()
"year,ns,L1,branch,L2,mutex,ns100,mem,micro,snappy,tenMicro,network,ssdRandom,mbMem,rtt,ms,mbSSD,seek,mbDisk,wan
1990, 1, 181.01933598375606, 603.3977866125202, 784.4171225962763, 3016.988933062601, 100, 206.61912329566738, 1000, 362038.6719675121, 10000, 1448154.6878700482, 18962.717429791854, 3038445.328471199, 500000, 1000000, 50156710.66810065, 19999999.999999996, 639999999.9999996, 150000000
1991, 1, 127.99999999999993, 426.6666666666664, 554.6666666666664, 2133.333333333332, 100, 192.1557846649707, 1000, 255999.99999999985, 10000, 1023999.9999999993, 18836.898417660566, 2411615.655381521, 500000, 1000000, 39809407.63890379, 18660659.83073615, 452548339.95939016, 150000000
1992, 1, 90.509667991878, 301.69889330626, 392.208561298138, 1508.4944665313, 100, 178.70487973842273, 1000, 181019.33598375603, 10000, 724077.343935024, 18711.914223844356, 1914100.614147803, 500000, 1000000, 31596747.782113373, 17411011.26592248, 319999999.9999998, 150000000
1993, 1, 63.99999999999994, 213.33333333333314, 277.3333333333331, 1066.6666666666656, 100, 166.19553815673316, 1000, 127999.99999999988, 10000, 511999.99999999953, 18587.75930926282, 1519222.6642355996, 500000, 1000000, 25078355.334050324, 16245047.92712471, 226274169.979695, 150000000
1994, 1, 45.254833995938995, 150.84944665313, 196.10428064906898, 754.2472332656499, 100, 154.56185048576185, 1000, 90509.667991878, 10000, 362038.67196751194, 18464.428171587842, 1205807.8276907606, 500000, 1000000, 19904703.819451895, 15157165.665103981, 159999999.99999985, 150000000
1995, 1, 31.99999999999997, 106.66666666666657, 138.66666666666654, 533.3333333333328, 100, 143.74252095175854, 1000, 63999.99999999994, 10000, 255999.99999999977, 18341.915344999572, 957050.3070739015, 500000, 1000000, 15798373.891056687, 14142135.62373095, 113137084.9898475, 150000000
1996, 1, 22.627416997969497, 75.424723326565, 98.05214032453449, 377.12361663282496, 100, 133.68054448513544, 1000, 45254.833995939, 10000, 181019.33598375597, 18220.215399944358, 759611.3321177998, 500000, 1000000, 12539177.667025162, 13195079.107728941, 79999999.99999993, 150000000
1997, 1, 15.999999999999982, 53.33333333333328, 69.33333333333326, 266.6666666666664, 100, 124.32290637117596, 1000, 31999.999999999967, 10000, 127999.99999999985, 18099.32294289393, 602903.9138453803, 500000, 1000000, 9952351.909725947, 12311444.133449161, 56568542.49492375, 150000000
1998, 1, 11.313708498984747, 37.71236166328249, 49.02607016226724, 188.56180831641245, 100, 115.62030292519364, 1000, 22627.416997969493, 10000, 90509.66799187797, 17979.232616106587, 478525.15353695065, 500000, 1000000, 7899186.945528341, 11486983.54997035, 39999999.999999955, 150000000
1999, 1, 7.99999999999999, 26.666666666666636, 34.66666666666662, 133.33333333333317, 100, 107.5268817204301, 1000, 15999.99999999998, 10000, 63999.99999999991, 17859.93909738954, 379805.66605889983, 500000, 1000000, 6269588.83351258, 10717734.62536293, 28284271.247461867, 150000000
2000, 1, 5.656854249492373, 18.85618083164124, 24.513035081133612, 94.2809041582062, 100, 100, 1000, 11313.708498984744, 10000, 45254.83399593898, 17741.43709986316, 301451.9569226901, 500000, 1000000, 4976175.954862973, 9999999.999999998, 19999999.999999974, 150000000
2001, 1, 3.9999999999999947, 13.333333333333314, 17.33333333333331, 66.66666666666657, 100, 100, 1000, 7999.999999999989, 10000, 31999.999999999956, 17623.721371726675, 239262.57676847532, 500000, 1000000, 3949593.4727641707, 9330329.915368075, 14142135.623730931, 150000000
2002, 1, 2.8284271247461863, 9.42809041582062, 12.256517540566806, 47.1404520791031, 100, 100, 1000, 5656.854249492372, 10000, 22627.41699796949, 17506.786696025436, 189902.8330294499, 500000, 1000000, 3134794.416756289, 8705505.63296124, 9999999.999999987, 150000000
2003, 1, 1.999999999999997, 6.666666666666656, 8.666666666666654, 33.33333333333328, 100, 100, 1000, 3999.9999999999936, 10000, 15999.99999999997, 17390.627890419513, 150725.97846134505, 500000, 1000000, 2488087.9774314864, 8122523.963562354, 8705505.632961227, 150000000
2004, 1, 1.4142135623730927, 4.714045207910309, 6.128258770283402, 23.570226039551546, 100, 100, 1000, 2828.427124746185, 10000, 11313.708498984743, 17275.239806954323, 119631.28838423763, 500000, 1000000, 1974796.7363820854, 7578582.83255199, 7578582.832551977, 150000000
2005, 1, 0.9999999999999984, 3.333333333333328, 4.333333333333327, 16.66666666666664, 100, 100, 1000, 1999.9999999999968, 10000, 7999.999999999985, 17160.61733183231, 94951.41651472494, 500000, 1000000, 1567397.2083781445, 7071067.811865474, 6597539.5538644595, 150000000
2006, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 5656.854249492371, 17046.755385186338, 75362.98923067252, 500000, 1000000, 1244043.9887157432, 6597539.553864471, 5743491.774985164, 150000000
2007, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 3999.999999999992, 16933.648920854474, 59815.644192118816, 500000, 1000000, 987398.3681910427, 6155722.066724581, 4999999.99999999, 150000000
2008, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 2828.4271247461847, 16821.29292615654, 47475.70825736247, 500000, 1000000, 783698.6041890723, 5743491.774985174, 4352752.816480611, 150000000
2009, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 1999.999999999996, 16709.682421671863, 37681.49461533626, 500000, 1000000, 622021.9943578716, 5358867.312681465, 3789291.416275987, 150000000
2010, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 1414.2135623730921, 16598.81246101847, 29907.822096059408, 500000, 1000000, 493699.18409552134, 4999999.999999999, 3298769.776932228, 150000000
2011, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 999.9999999999977, 16488.67813063411, 23737.854128681236, 500000, 1000000, 391849.302094536, 4665164.957684036, 2871745.8874925813, 150000000
2012, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 707.1067811865461, 16379.274549558333, 18840.747307668127, 500000, 1000000, 311010.9971789357, 4352752.81648062, 2499999.999999994, 150000000
2013, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 499.99999999999886, 16270.596869216266, 14953.911048029704, 500000, 1000000, 246849.59204776067, 4061261.9817811768, 2176376.408240305, 150000000
2014, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 353.5533905932729, 16162.640273203546, 11868.927064340618, 500000, 1000000, 195924.651047268, 3789291.4162759944, 1894645.7081379928, 150000000
2015, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 249.9999999999994, 16000, 9420.373653834064, 500000, 1000000, 155505.49858946784, 3535533.905932737, 1649384.8884661137, 150000000
2016, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 176.77669529663646, 16000, 7476.955524014851, 500000, 1000000, 123424.79602388028, 3298769.776932235, 1435872.94374629, 150000000
2017, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 124.99999999999967, 16000, 5934.463532170308, 500000, 1000000, 97962.325523634, 3077861.03336229, 1249999.9999999965, 150000000
2018, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 88.38834764831822, 16000, 4710.186826917032, 500000, 1000000, 77752.74929473392, 2871745.887492587, 1088188.204120152, 150000000
2019, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 62.49999999999984, 16000, 3738.4777620074256, 500000, 1000000, 61712.39801194014, 2679433.6563407327, 947322.8540689959, 150000000
2020, 1, 1, 3.333333333333333, 4.333333333333333, 16.666666666666664, 100, 100, 1000, 2000, 10000, 44.194173824159094, 16000, 2967.231766085154, 500000, 1000000, 48981.162761817, 2499999.999999999, 824692.4442330565, 150000000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment