Skip to content

Instantly share code, notes, and snippets.

@theonewolf
Created April 25, 2011 21:52
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 theonewolf/941324 to your computer and use it in GitHub Desktop.
Save theonewolf/941324 to your computer and use it in GitHub Desktop.
perf stat on _best_ and _malloc_
Performance counter stats for './test_hash_best':
1875.329076 task-clock-msecs # 1.098 CPUs
561 context-switches # 0.000 M/sec
42 CPU-migrations # 0.000 M/sec
44797 page-faults # 0.024 M/sec
4943793781 cycles # 2636.227 M/sec
7382867149 instructions # 1.493 IPC
5901980 cache-references # 3.147 M/sec
489832 cache-misses # 0.261 M/sec
1.708594930 seconds time elapsed
Performance counter stats for './test_hash_malloc':
11600.446605 task-clock-msecs # 1.012 CPUs
1606 context-switches # 0.000 M/sec
40 CPU-migrations # 0.000 M/sec
77270 page-faults # 0.007 M/sec
30713443472 cycles # 2647.609 M/sec
12760220838 instructions # 0.415 IPC
250351851 cache-references # 21.581 M/sec
116850142 cache-misses # 10.073 M/sec
11.468483321 seconds time elapsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment