Skip to content

Instantly share code, notes, and snippets.

@denofevil

denofevil/after Secret

Last active December 17, 2015 06:19
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 denofevil/5026294ee6de42699b41 to your computer and use it in GitHub Desktop.
Save denofevil/5026294ee6de42699b41 to your computer and use it in GitHub Desktop.
Mac specific nano time, updated benchmark
~/jdk8/jmh-nanotime (master) $ ../tl/build/macosx-x86_64-normal-server-release/jdk/bin/java -jar target/microbenchmarks.jar ".*" -wi 1
-r 1
# Measurement Section
# Runtime (per iteration): 1s
# Iterations: 20
# Thread counts (concurrent threads per iteration): [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
# Threads will synchronize iterations
# Running: net.shipilev.generated.avgtime.NanotimeBenchmark.granularity
# Warmup Iteration 1 (3s in 1 thread): 30.972 nsec/op
Iteration 1 (1s in 1 thread): 31.418 nsec/op
Iteration 2 (1s in 1 thread): 31.175 nsec/op
Iteration 3 (1s in 1 thread): 31.441 nsec/op
Iteration 4 (1s in 1 thread): 31.344 nsec/op
Iteration 5 (1s in 1 thread): 31.432 nsec/op
Iteration 6 (1s in 1 thread): 31.334 nsec/op
Iteration 7 (1s in 1 thread): 31.453 nsec/op
Iteration 8 (1s in 1 thread): 31.295 nsec/op
Iteration 9 (1s in 1 thread): 31.282 nsec/op
Iteration 10 (1s in 1 thread): 32.056 nsec/op
Iteration 11 (1s in 1 thread): 31.938 nsec/op
Iteration 12 (1s in 1 thread): 31.341 nsec/op
Iteration 13 (1s in 1 thread): 31.346 nsec/op
Iteration 14 (1s in 1 thread): 31.250 nsec/op
Iteration 15 (1s in 1 thread): 31.235 nsec/op
Iteration 16 (1s in 1 thread): 31.202 nsec/op
Iteration 17 (1s in 1 thread): 31.278 nsec/op
Iteration 18 (1s in 1 thread): 31.194 nsec/op
Iteration 19 (1s in 1 thread): 31.179 nsec/op
Iteration 20 (1s in 1 thread): 31.198 nsec/op
Run result "granularity": 31.370 ±(95%) 0.109 ±(99%) 0.149 nsec/op
Run statistics "granularity": min = 31.175, avg = 31.370, max = 32.056, stdev = 0.233
Run confidence intervals "granularity": 95% [31.261, 31.479], 99% [31.221, 31.519]
# Runtime (per iteration): 1s
# Iterations: 20
# Thread counts (concurrent threads per iteration): [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
# Threads will synchronize iterations
# Running: net.shipilev.generated.avgtime.NanotimeBenchmark.latency
# Warmup Iteration 1 (3s in 1 thread): 30.438 nsec/op
Iteration 1 (1s in 1 thread): 31.041 nsec/op
Iteration 2 (1s in 1 thread): 30.788 nsec/op
Iteration 3 (1s in 1 thread): 30.770 nsec/op
Iteration 4 (1s in 1 thread): 30.824 nsec/op
Iteration 5 (1s in 1 thread): 30.690 nsec/op
Iteration 6 (1s in 1 thread): 30.637 nsec/op
Iteration 7 (1s in 1 thread): 30.647 nsec/op
Iteration 8 (1s in 1 thread): 30.834 nsec/op
Iteration 9 (1s in 1 thread): 30.580 nsec/op
Iteration 10 (1s in 1 thread): 30.636 nsec/op
Iteration 11 (1s in 1 thread): 30.805 nsec/op
Iteration 12 (1s in 1 thread): 30.788 nsec/op
Iteration 13 (1s in 1 thread): 30.597 nsec/op
Iteration 14 (1s in 1 thread): 30.640 nsec/op
Iteration 15 (1s in 1 thread): 30.655 nsec/op
Iteration 16 (1s in 1 thread): 30.882 nsec/op
Iteration 17 (1s in 1 thread): 30.815 nsec/op
Iteration 18 (1s in 1 thread): 30.686 nsec/op
Iteration 19 (1s in 1 thread): 30.750 nsec/op
Iteration 20 (1s in 1 thread): 30.709 nsec/op
Run result "latency": 30.739 ±(95%) 0.053 ±(99%) 0.072 nsec/op
Run statistics "latency": min = 30.580, avg = 30.739, max = 31.041, stdev = 0.113
Run confidence intervals "latency": 95% [30.686, 30.792], 99% [30.667, 30.811]
Benchmark Thr Cnt Sec Mean Mean error Var Units
n.s.g.a.NanotimeBenchmark.granularity 1 20 1 31.370 0.149 0.054 nsec/op
n.s.g.a.NanotimeBenchmark.latency 1 20 1 30.739 0.072 0.013 nsec/op
~/jdk8/jmh-nanotime (master) $ ../tl/build/macosx-x86_64-normal-server-release/jdk/bin/java -jar target/microbenchmarks.jar ".*" -wi 1
-r 1
# Measurement Section
# Runtime (per iteration): 1s
# Iterations: 20
# Thread counts (concurrent threads per iteration): [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
# Threads will synchronize iterations
# Running: net.shipilev.generated.avgtime.NanotimeBenchmark.granularity
# Warmup Iteration 1 (3s in 1 thread): 1008.637 nsec/op
Iteration 1 (1s in 1 thread): 1008.639 nsec/op
Iteration 2 (1s in 1 thread): 1009.404 nsec/op
Iteration 3 (1s in 1 thread): 1007.838 nsec/op
Iteration 4 (1s in 1 thread): 1007.723 nsec/op
Iteration 5 (1s in 1 thread): 1008.413 nsec/op
Iteration 6 (1s in 1 thread): 1008.409 nsec/op
Iteration 7 (1s in 1 thread): 1007.779 nsec/op
Iteration 8 (1s in 1 thread): 1007.584 nsec/op
Iteration 9 (1s in 1 thread): 1010.090 nsec/op
Iteration 10 (1s in 1 thread): 1009.704 nsec/op
Iteration 11 (1s in 1 thread): 1008.385 nsec/op
Iteration 12 (1s in 1 thread): 1008.105 nsec/op
Iteration 13 (1s in 1 thread): 1008.074 nsec/op
Iteration 14 (1s in 1 thread): 1008.236 nsec/op
Iteration 15 (1s in 1 thread): 1007.784 nsec/op
Iteration 16 (1s in 1 thread): 1007.835 nsec/op
Iteration 17 (1s in 1 thread): 1008.396 nsec/op
Iteration 18 (1s in 1 thread): 1009.186 nsec/op
Iteration 19 (1s in 1 thread): 1007.952 nsec/op
Iteration 20 (1s in 1 thread): 1008.167 nsec/op
Run result "granularity": 1008.385 ±(95%) 0.326 ±(99%) 0.446 nsec/op
Run statistics "granularity": min = 1007.584, avg = 1008.385, max = 1010.090, stdev = 0.697
Run confidence intervals "granularity": 95% [1008.059, 1008.711], 99% [1007.939, 1008.831]
# Runtime (per iteration): 1s
# Iterations: 20
# Thread counts (concurrent threads per iteration): [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
# Threads will synchronize iterations
# Running: net.shipilev.generated.avgtime.NanotimeBenchmark.latency
# Warmup Iteration 1 (3s in 1 thread): 36.095 nsec/op
Iteration 1 (1s in 1 thread): 36.287 nsec/op
Iteration 2 (1s in 1 thread): 36.299 nsec/op
Iteration 3 (1s in 1 thread): 36.329 nsec/op
Iteration 4 (1s in 1 thread): 36.340 nsec/op
Iteration 5 (1s in 1 thread): 36.289 nsec/op
Iteration 6 (1s in 1 thread): 36.353 nsec/op
Iteration 7 (1s in 1 thread): 36.442 nsec/op
Iteration 8 (1s in 1 thread): 36.668 nsec/op
Iteration 9 (1s in 1 thread): 36.386 nsec/op
Iteration 10 (1s in 1 thread): 36.349 nsec/op
Iteration 11 (1s in 1 thread): 36.263 nsec/op
Iteration 12 (1s in 1 thread): 36.341 nsec/op
Iteration 13 (1s in 1 thread): 36.464 nsec/op
Iteration 14 (1s in 1 thread): 36.265 nsec/op
Iteration 15 (1s in 1 thread): 36.372 nsec/op
Iteration 16 (1s in 1 thread): 36.304 nsec/op
Iteration 17 (1s in 1 thread): 36.328 nsec/op
Iteration 18 (1s in 1 thread): 36.262 nsec/op
Iteration 19 (1s in 1 thread): 36.331 nsec/op
Iteration 20 (1s in 1 thread): 36.367 nsec/op
Run result "latency": 36.352 ±(95%) 0.043 ±(99%) 0.059 nsec/op
Run statistics "latency": min = 36.262, avg = 36.352, max = 36.668, stdev = 0.092
Run confidence intervals "latency": 95% [36.309, 36.395], 99% [36.293, 36.411]
Benchmark Thr Cnt Sec Mean Mean error Var Units
n.s.g.a.NanotimeBenchmark.granularity 1 20 1 1008.385 0.446 0.486 nsec/op
n.s.g.a.NanotimeBenchmark.latency 1 20 1 36.352 0.059 0.008 nsec/op
Hardware Overview:
Model Name: Mac mini
Model Identifier: Macmini6,2
Processor Name: Intel Core i7
Processor Speed: 2.6 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 16 GB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment