Created
August 20, 2017 19:35
-
-
Save marschall/c0260aba698b8bb0f13d4c097b202021 to your computer and use it in GitHub Desktop.
UUID parsing performance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$java -version | |
openjdk version "1.8.0_121" | |
OpenJDK Runtime Environment (build 1.8.0_121-b13) | |
OpenJDK 64-Bit Graal VM (build 25.71-b01-internal-jvmci-0.30, mixed mode) | |
Result "com.github.marschall.charsequences.ParseUuidBenchmark.parseJdk": | |
2.411 ±(99.9%) 0.014 ops/us [Average] | |
(min, avg, max) = (2.124, 2.411, 2.462), stdev = 0.043 | |
CI (99.9%): [2.396, 2.425] (assumes normal distribution) | |
# Run complete. Total time: 00:06:43 | |
Benchmark Mode Cnt Score Error Units | |
ParseUuidBenchmark.parseCharSequences thrpt 100 263.394 ± 1.341 ops/us | |
ParseUuidBenchmark.parseJdk thrpt 100 2.411 ± 0.014 ops/us |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$java -version | |
java version "9" | |
Java(TM) SE Runtime Environment (build 9+181) | |
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode) | |
Result "com.github.marschall.charsequences.ParseUuidBenchmark.parseJdk": | |
8.728 ±(99.9%) 0.036 ops/us [Average] | |
(min, avg, max) = (7.871, 8.728, 8.880), stdev = 0.106 | |
CI (99.9%): [8.693, 8.764] (assumes normal distribution) | |
# Run complete. Total time: 00:06:44 | |
Benchmark Mode Cnt Score Error Units | |
ParseUuidBenchmark.parseCharSequences thrpt 100 29.910 ± 0.138 ops/us | |
ParseUuidBenchmark.parseJdk thrpt 100 8.728 ± 0.036 ops/us | |
Result "com.github.marschall.charsequences.ParseUuidBenchmark.parseJdk": | |
8.728 ±(99.9%) 0.036 ops/us [Average] | |
(min, avg, max) = (7.871, 8.728, 8.880), stdev = 0.106 | |
CI (99.9%): [8.693, 8.764] (assumes normal distribution) | |
# Run complete. Total time: 00:06:44 | |
Benchmark Mode Cnt Score Error Units | |
ParseUuidBenchmark.parseCharSequences thrpt 100 29.910 ± 0.138 ops/us | |
ParseUuidBenchmark.parseJdk thrpt 100 8.728 ± 0.036 ops/us |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$java -version | |
java version "1.8.0_144" | |
Java(TM) SE Runtime Environment (build 1.8.0_144-b01) | |
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) | |
Result "com.github.marschall.charsequences.ParseUuidBenchmark.parseJdk": | |
2.917 ±(99.9%) 0.008 ops/us [Average] | |
(min, avg, max) = (2.835, 2.917, 2.958), stdev = 0.023 | |
CI (99.9%): [2.909, 2.925] (assumes normal distribution) | |
# Run complete. Total time: 00:06:43 | |
Benchmark Mode Cnt Score Error Units | |
ParseUuidBenchmark.parseCharSequences thrpt 100 25.927 ± 0.063 ops/us | |
ParseUuidBenchmark.parseJdk thrpt 100 2.917 ± 0.008 ops/us |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source https://github.com/marschall/charsequences/blob/master/src/main/java/com/github/marschall/charsequences/CharSequences.java#L454 | |
# benchmark https://github.com/marschall/charsequences/blob/master/src/test/java/com/github/marschall/charsequences/ParseUuidBenchmark.java | |
wget https://search.maven.org/remotecontent?filepath=com/github/marschall/charsequences/0.5.0/charsequences-0.5.0-jar-with-test-dependencies.jar | |
java -cp charsequences-0.5.0-jar-with-test-dependencies.jar com.github.marschall.charsequences.ParseUuidBenchmark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment