Skip to content

Instantly share code, notes, and snippets.

@lemmy
Created August 23, 2018 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 lemmy/c0423931f60c9ec5c7316732512ee511 to your computer and use it in GitHub Desktop.
Save lemmy/c0423931f60c9ec5c7316732512ee511 to your computer and use it in GitHub Desktop.
Unsafe#get/put vs. copyMemory
[
{
"jmhVersion" : "1.21",
"benchmark" : "tlc2.tool.fp.LongArrayBenchmark.AswapWithCopy",
"mode" : "thrpt",
"threads" : 1,
"forks" : 3,
"jvm" : "/usr/lib/jvm/java-8-oracle/jre/bin/java",
"jvmArgs" : [
"-Xms8192m",
"-Xmx8192m",
"-Dtlc2.tool.ModuleOverwritesBenchmark.base=/home/markus/src/TLA/tla/tlatools/test-model"
],
"jdkVersion" : "1.8.0_181",
"vmName" : "Java HotSpot(TM) 64-Bit Server VM",
"vmVersion" : "25.181-b13",
"warmupIterations" : 2,
"warmupTime" : "10 s",
"warmupBatchSize" : 1,
"measurementIterations" : 3,
"measurementTime" : "10 s",
"measurementBatchSize" : 1,
"primaryMetric" : {
"score" : 2.0439204026027572E8,
"scoreError" : 8850152.358769448,
"scoreConfidence" : [
1.9554188790150627E8,
2.1324219261904517E8
],
"scorePercentiles" : {
"0.0" : 1.9713826926227215E8,
"50.0" : 2.056046353721354E8,
"90.0" : 2.1189752635899132E8,
"95.0" : 2.1189752635899132E8,
"99.0" : 2.1189752635899132E8,
"99.9" : 2.1189752635899132E8,
"99.99" : 2.1189752635899132E8,
"99.999" : 2.1189752635899132E8,
"99.9999" : 2.1189752635899132E8,
"100.0" : 2.1189752635899132E8
},
"scoreUnit" : "ops/s",
"rawData" : [
[
2.0224176239103407E8,
2.0007882084948805E8,
1.9713826926227215E8
],
[
1.9795907378887033E8,
2.056046353721354E8,
2.079816457688918E8
],
[
2.1189752635899132E8,
2.070431434305745E8,
2.0958348512022397E8
]
]
},
"secondaryMetrics" : {
}
},
{
"jmhVersion" : "1.21",
"benchmark" : "tlc2.tool.fp.LongArrayBenchmark.BswapGetSet",
"mode" : "thrpt",
"threads" : 1,
"forks" : 3,
"jvm" : "/usr/lib/jvm/java-8-oracle/jre/bin/java",
"jvmArgs" : [
"-Xms8192m",
"-Xmx8192m",
"-Dtlc2.tool.ModuleOverwritesBenchmark.base=/home/markus/src/TLA/tla/tlatools/test-model"
],
"jdkVersion" : "1.8.0_181",
"vmName" : "Java HotSpot(TM) 64-Bit Server VM",
"vmVersion" : "25.181-b13",
"warmupIterations" : 2,
"warmupTime" : "10 s",
"warmupBatchSize" : 1,
"measurementIterations" : 3,
"measurementTime" : "10 s",
"measurementBatchSize" : 1,
"primaryMetric" : {
"score" : 6.467799414667213E8,
"scoreError" : 4.412654938782609E7,
"scoreConfidence" : [
6.026533920788952E8,
6.909064908545474E8
],
"scorePercentiles" : {
"0.0" : 6.070786762102009E8,
"50.0" : 6.588490374354341E8,
"90.0" : 6.708747592131723E8,
"95.0" : 6.708747592131723E8,
"99.0" : 6.708747592131723E8,
"99.9" : 6.708747592131723E8,
"99.99" : 6.708747592131723E8,
"99.999" : 6.708747592131723E8,
"99.9999" : 6.708747592131723E8,
"100.0" : 6.708747592131723E8
},
"scoreUnit" : "ops/s",
"rawData" : [
[
6.070786762102009E8,
6.43561878901822E8,
6.198486243603247E8
],
[
6.588490374354341E8,
6.706075634652888E8,
6.664223034816636E8
],
[
6.708747592131723E8,
6.690616646634722E8,
6.147149654691137E8
]
]
},
"secondaryMetrics" : {
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment