Skip to content

Instantly share code, notes, and snippets.

@nitsanw
Created January 21, 2013 18:23
Show Gist options
  • Save nitsanw/4588102 to your computer and use it in GitHub Desktop.
Save nitsanw/4588102 to your computer and use it in GitHub Desktop.
Caliper output of UTF8 benchmark
0% Scenario{vm=java, trial=0, benchmark=CustomEncoder, direct=true, stringsFile=utf8.txt} 107419.06 ns; σ=1032.57 ns @ 4 trials
17% Scenario{vm=java, trial=0, benchmark=StringGetBytes, direct=true, stringsFile=utf8.txt} 199795.25 ns; σ=6067.76 ns @ 10 trials
33% Scenario{vm=java, trial=0, benchmark=CharsetEncoder, direct=true, stringsFile=utf8.txt} 278708.17 ns; σ=10344.13 ns @ 10 trials
50% Scenario{vm=java, trial=0, benchmark=CustomEncoder, direct=false, stringsFile=utf8.txt} 102597.54 ns; σ=3081.05 ns @ 10 trials
67% Scenario{vm=java, trial=0, benchmark=StringGetBytes, direct=false, stringsFile=utf8.txt} 196083.46 ns; σ=4185.70 ns @ 10 trials
83% Scenario{vm=java, trial=0, benchmark=CharsetEncoder, direct=false, stringsFile=utf8.txt} 185340.89 ns; σ=17881.00 ns @ 10 trials
benchmark direct us linear runtime
CustomEncoder true 107 ===========
CustomEncoder false 103 ===========
StringGetBytes true 200 =====================
StringGetBytes false 196 =====================
CharsetEncoder true 279 ==============================
CharsetEncoder false 185 ===================
vm: java
trial: 0
stringsFile: utf8.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment