Skip to content

Instantly share code, notes, and snippets.

@jneufeld
Created December 29, 2011 00:31
Show Gist options
  • Select an option

  • Save jneufeld/1530718 to your computer and use it in GitHub Desktop.

Select an option

Save jneufeld/1530718 to your computer and use it in GitHub Desktop.
Small results set of testing Nehalem's L1 cache
=== test2 ===
No Filler:
N % misses time
1000000 0.55 0.329
1000000 0.55 0.329
1000000 0.54 0.331
1000000 0.45 0.353
1000000 0.55 0.330
1000000 0.52 0.334
1000000 0.55 0.330
1000000 0.54 0.329
1000000 0.55 0.329
1000000 0.55 0.328
Filler:
N % misses time
1000000 0.00 0.294
1000000 0.01 0.297
1000000 0.00 0.297
1000000 0.00 0.296
1000000 0.00 0.296
1000000 0.00 0.296
1000000 0.00 0.296
1000000 0.00 0.297
1000000 0.00 0.297
1000000 0.01 0.329
=== test3 ===
The length of the array is doubled in the case of fewer expected cache misses,
so running time is misleading.
LEN = 64:
N % misses time
1000 0.07 0.016
1000 0.35 0.010
1000 0.35 0.010
1000 0.07 0.017
1000 0.35 0.010
1000 0.35 0.010
1000 0.35 0.010
1000 0.07 0.016
1000 0.35 0.010
1000 0.35 0.010
LEN = 128:
N % misses time
1000 0.03 0.031
1000 0.04 0.020
1000 0.04 0.019
1000 0.04 0.031
1000 0.04 0.020
1000 0.04 0.020
1000 0.04 0.019
1000 0.04 0.031
1000 0.04 0.031
1000 0.04 0.019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment