Linusov quick mem latency tester

torvalds/test-tlb

Naletoh na ovo pa eto mog rezultata (sa default vrednostima;)

~/projects/test-tlb >>> make run  ±[master]
for i in 4k 8k 16k 32k 64k 128k 256k 512k 1M 2M 4M 6M 8M 16M 32M 64M 128M 256M ; do echo "$i:"; ./test-tlb -H $i 64; ./test-tlb $i 64 ; ./test-tlb -Hr $i 64; ./test-tlb -r $i 64; done
4k:
  0.95ns (~3.7 cycles)
  0.95ns (~3.7 cycles)
  0.95ns (~3.7 cycles)
  0.95ns (~3.7 cycles)
8k:
  0.95ns (~3.7 cycles)
  0.95ns (~3.7 cycles)
  0.95ns (~3.7 cycles)
  0.95ns (~3.7 cycles)
16k:
  0.95ns (~3.7 cycles)
  0.95ns (~3.7 cycles)
  0.96ns (~3.7 cycles)
  0.95ns (~3.7 cycles)
32k:
  0.99ns (~3.9 cycles)
  0.99ns (~3.9 cycles)
  0.97ns (~3.8 cycles)
  0.97ns (~3.8 cycles)
64k:
  1.51ns (~5.9 cycles)
  1.53ns (~6.0 cycles)
  2.87ns (~11.2 cycles)
  2.87ns (~11.2 cycles)
128k:
  1.52ns (~5.9 cycles)
  1.56ns (~6.1 cycles)
  2.86ns (~11.2 cycles)
  2.87ns (~11.2 cycles)
256k:
  1.53ns (~6.0 cycles)
  1.61ns (~6.3 cycles)
  2.86ns (~11.2 cycles)
  2.92ns (~11.4 cycles)
512k:
  1.50ns (~5.8 cycles)
  1.59ns (~6.2 cycles)
  2.92ns (~11.4 cycles)
  5.39ns (~21.0 cycles)
1M:
  1.58ns (~6.2 cycles)
  1.63ns (~6.4 cycles)
  7.03ns (~27.4 cycles)
  8.55ns (~33.4 cycles)
2M:
  1.57ns (~6.1 cycles)
  1.69ns (~6.6 cycles)
  7.72ns (~30.1 cycles)
  9.43ns (~36.8 cycles)
4M:
  1.54ns (~6.0 cycles)
  1.80ns (~7.0 cycles)
  8.10ns (~31.6 cycles)
 10.05ns (~39.2 cycles)
6M:
  1.61ns (~6.3 cycles)
  2.15ns (~8.4 cycles)
  8.37ns (~32.7 cycles)
 14.14ns (~55.2 cycles)
8M:
  2.97ns (~11.6 cycles)
  3.70ns (~14.4 cycles)
 23.09ns (~90.1 cycles)
 34.17ns (~133.3 cycles)
16M:
  3.28ns (~12.8 cycles)
  4.56ns (~17.8 cycles)
 61.75ns (~240.8 cycles)
 68.59ns (~267.5 cycles)
32M:
  3.29ns (~12.8 cycles)
  4.68ns (~18.2 cycles)
 70.40ns (~274.6 cycles)
 78.84ns (~307.5 cycles)
64M:
  3.39ns (~13.2 cycles)
  4.60ns (~17.9 cycles)
 75.03ns (~292.6 cycles)
 84.92ns (~331.2 cycles)
128M:
  3.99ns (~15.6 cycles)
  4.65ns (~18.1 cycles)
 81.29ns (~317.0 cycles)
 88.92ns (~346.8 cycles)
256M:
  4.18ns (~16.3 cycles)
  4.70ns (~18.3 cycles)
 86.19ns (~336.1 cycles)
 91.99ns (~358.8 cycles)

Koji su vasi?

Ево га:

4k: 1.32ns (~5.1 cycles) 1.32ns (~5.1 cycles) 1.32ns (~5.1 cycles) 1.32ns (~5.1 cycles) 8k: 1.32ns (~5.1 cycles) 1.32ns (~5.1 cycles) 1.32ns (~5.1 cycles) 1.32ns (~5.1 cycles) 16k: 1.32ns (~5.1 cycles) 1.32ns (~5.1 cycles) 1.34ns (~5.2 cycles) 1.32ns (~5.2 cycles) 32k: 1.35ns (~5.3 cycles) 1.35ns (~5.3 cycles) 1.35ns (~5.3 cycles) 1.35ns (~5.3 cycles) 64k: 3.33ns (~13.0 cycles) 3.34ns (~13.0 cycles) 3.32ns (~12.9 cycles) 3.33ns (~13.0 cycles) 128k: 3.37ns (~13.2 cycles) 3.39ns (~13.2 cycles) 3.34ns (~13.0 cycles) 5.42ns (~21.2 cycles) 256k: 3.35ns (~13.1 cycles) 3.54ns (~13.8 cycles) 3.36ns (~13.1 cycles) 9.37ns (~36.6 cycles) 512k: 3.84ns (~15.0 cycles) 4.00ns (~15.6 cycles) 15.16ns (~59.1 cycles) 16.57ns (~64.6 cycles) 1M: 3.84ns (~15.0 cycles) 4.00ns (~15.6 cycles) 15.16ns (~59.1 cycles) 17.15ns (~66.9 cycles) 2M: 3.84ns (~15.0 cycles) 4.92ns (~19.2 cycles) 15.17ns (~59.2 cycles) 25.36ns (~98.9 cycles) 4M: 9.62ns (~37.5 cycles) 9.86ns (~38.4 cycles) 103.15ns (~402.3 cycles) 104.03ns (~405.7 cycles) 6M: 10.37ns (~40.5 cycles) 10.98ns (~42.8 cycles) 120.30ns (~469.2 cycles) 126.33ns (~492.7 cycles) 8M: 10.42ns (~40.7 cycles) 11.16ns (~43.5 cycles) 120.29ns (~469.1 cycles) 130.87ns (~510.4 cycles) 16M: 10.37ns (~40.5 cycles) 11.16ns (~43.5 cycles) 120.34ns (~469.3 cycles) 132.02ns (~514.9 cycles) 32M: 10.35ns (~40.4 cycles) 11.11ns (~43.3 cycles) 120.30ns (~469.2 cycles) 131.45ns (~512.7 cycles) 64M: 10.35ns (~40.4 cycles) 10.98ns (~42.8 cycles) 119.96ns (~467.8 cycles) 132.87ns (~518.2 cycles) 128M: 10.38ns (~40.5 cycles) 10.91ns (~42.6 cycles) 122.89ns (~479.3 cycles) 136.92ns (~534.0 cycles) 256M: 10.34ns (~40.3 cycles) 10.86ns (~42.4 cycles) 124.29ns (~484.7 cycles) 142.65ns (~556.3 cycles)