Skip to content

Instantly share code, notes, and snippets.

@japgolly
Created April 25, 2012 02:29
Show Gist options
  • Save japgolly/2485642 to your computer and use it in GitHub Desktop.
Save japgolly/2485642 to your computer and use it in GitHub Desktop.
JRuby JSON lib benchmarks
=================================================================================================================
jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.7.0_03-icedtea) [linux-amd64-java]
ENGINES: [:jr_jackson]
REPS: 100000
WARMUPS: 5
------------------------------------------------------------------
Writing (warmup)
user system total real
jr_jackson: 1.695000 0.000000 1.695000 ( 1.695000)
jr_jackson: 0.845000 0.000000 0.845000 ( 0.846000)
jr_jackson: 0.963000 0.000000 0.963000 ( 0.963000)
jr_jackson: 0.839000 0.000000 0.839000 ( 0.839000)
jr_jackson: 0.845000 0.000000 0.845000 ( 0.845000)
Writing
user system total real
jr_jackson: 0.838000 0.000000 0.838000 ( 0.837000)
------------------------------------------------------------------
------------------------------------------------------------------
Reading (warmup)
user system total real
jr_jackson: 1.616000 0.000000 1.616000 ( 1.616000)
jr_jackson: 1.004000 0.000000 1.004000 ( 1.004000)
jr_jackson: 0.986000 0.000000 0.986000 ( 0.986000)
jr_jackson: 0.964000 0.000000 0.964000 ( 0.964000)
jr_jackson: 1.015000 0.000000 1.015000 ( 1.015000)
Reading
user system total real
jr_jackson: 0.989000 0.000000 0.989000 ( 0.989000)
------------------------------------------------------------------
=================================================================================================================
jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.7.0_03-icedtea) [linux-amd64-java]
ENGINES: [:json_gem]
REPS: 100000
WARMUPS: 5
------------------------------------------------------------------
Writing (warmup)
user system total real
json_gem: 4.033000 0.000000 4.033000 ( 4.033000)
json_gem: 3.069000 0.000000 3.069000 ( 3.069000)
json_gem: 3.067000 0.000000 3.067000 ( 3.067000)
json_gem: 3.054000 0.000000 3.054000 ( 3.054000)
json_gem: 3.046000 0.000000 3.046000 ( 3.046000)
Writing
user system total real
json_gem: 3.022000 0.000000 3.022000 ( 3.022000)
------------------------------------------------------------------
------------------------------------------------------------------
Reading (warmup)
user system total real
json_gem: 4.589000 0.000000 4.589000 ( 4.589000)
json_gem: 4.148000 0.000000 4.148000 ( 4.149000)
json_gem: 4.212000 0.000000 4.212000 ( 4.212000)
json_gem: 4.106000 0.000000 4.106000 ( 4.106000)
json_gem: 4.122000 0.000000 4.122000 ( 4.122000)
Reading
user system total real
json_gem: 4.103000 0.000000 4.103000 ( 4.103000)
------------------------------------------------------------------
=================================================================================================================
jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.7.0_03-icedtea) [linux-amd64-java]
ENGINES: [:json_pure]
REPS: 100000
WARMUPS: 5
------------------------------------------------------------------
Writing (warmup)
user system total real
json_pure: 11.347000 0.000000 11.347000 ( 11.347000)
json_pure: 9.519000 0.000000 9.519000 ( 9.520000)
json_pure: 9.547000 0.000000 9.547000 ( 9.547000)
json_pure: 9.406000 0.000000 9.406000 ( 9.406000)
json_pure: 9.533000 0.000000 9.533000 ( 9.533000)
Writing
user system total real
json_pure: 9.486000 0.000000 9.486000 ( 9.486000)
------------------------------------------------------------------
------------------------------------------------------------------
Reading (warmup)
user system total real
json_pure: 18.619000 0.000000 18.619000 ( 18.619000)
json_pure: 17.319000 0.000000 17.319000 ( 17.319000)
json_pure: 17.353000 0.000000 17.353000 ( 17.353000)
json_pure: 17.259000 0.000000 17.259000 ( 17.259000)
json_pure: 17.351000 0.000000 17.351000 ( 17.352000)
Reading
user system total real
json_pure: 17.299000 0.000000 17.299000 ( 17.299000)
------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment