Skip to content

Instantly share code, notes, and snippets.

@forketyfork
Created April 9, 2014 13:59
Show Gist options
  • Save forketyfork/10273857 to your computer and use it in GitHub Desktop.
Save forketyfork/10273857 to your computer and use it in GitHub Desktop.
Java(TM) SE Runtime Environment, 1.7.0_51-b13
Java HotSpot(TM) 64-Bit Server VM, 24.51-b03
Mac OS X, 10.9.2, x86_64
Burning up to figure out the exact CPU count....... done!
Running with 1 threads and [-client]:
granularity_currentTime: 993598,116 +- 812,330 ns
granularity_nanotime: 1007,995 +- 2,673 ns
latency_currentTime: 42,144 +- 15,816 ns
latency_nanotime: 43,346 +- 17,252 ns
Running with 4 threads and [-client]:
granularity_currentTime: 997030,219 +- 465,515 ns
granularity_nanotime: 1004,611 +- 5,012 ns
latency_currentTime: 45,575 +- 30,318 ns
latency_nanotime: 48,559 +- 48,071 ns
Running with 8 threads and [-client]:
granularity_currentTime: 1008020,782 +- 9653,481 ns
granularity_nanotime: 1049,353 +- 69,045 ns
latency_currentTime: 56,522 +- 22,049 ns
latency_nanotime: 56,966 +- 195,277 ns
Running with 1 threads and [-server]:
granularity_currentTime: 993572,549 +- 786,126 ns
granularity_nanotime: 1010,267 +- 1,486 ns
latency_currentTime: 43,730 +- 15,646 ns
latency_nanotime: 43,510 +- 17,001 ns
Running with 4 threads and [-server]:
granularity_currentTime: 996986,115 +- 407,710 ns
granularity_nanotime: 1004,395 +- 5,129 ns
latency_currentTime: 46,245 +- 17,589 ns
latency_nanotime: 44,172 +- 13,542 ns
Running with 8 threads and [-server]:
granularity_currentTime: 1006667,926 +- 6500,775 ns
granularity_nanotime: 1080,648 +- 97,215 ns
latency_currentTime: 58,081 +- 149,473 ns
latency_nanotime: 57,573 +- 146,681 ns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment