Skip to content

Instantly share code, notes, and snippets.

@enebo
Last active October 25, 2019 22:01
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 enebo/25a2fa8cef7dbab0d4edb30a98a862e5 to your computer and use it in GitHub Desktop.
Save enebo/25a2fa8cef7dbab0d4edb30a98a862e5 to your computer and use it in GitHub Desktop.
= BEFORE =
jruby ../snippets/unpack1.rb
Ignoring bcrypt-ruby-3.0.0-java because its extensions are not built. Try: gem pristine bcrypt-ruby --version 3.0.0
Warming up --------------------------------------
unpack m short 6.479k i/100ms
unpack1 m short 9.154k i/100ms
unpack m long 22.000 i/100ms
unpack1 m long 23.000 i/100ms
Calculating -------------------------------------
unpack m short 80.231k (± 7.6%) i/s - 401.698k in 5.039209s
unpack1 m short 109.642k (± 5.2%) i/s - 549.240k in 5.024533s
unpack m long 235.916 (± 5.9%) i/s - 1.188k in 5.054333s
unpack1 m long 247.144 (± 1.6%) i/s - 1.242k in 5.026800s
system ~/work/jruby master 2080%
= AFTER =
jruby ../snippets/unpack1.rb
Ignoring bcrypt-ruby-3.0.0-java because its extensions are not built. Try: gem pristine bcrypt-ruby --version 3.0.0
Warming up --------------------------------------
unpack m short 7.086k i/100ms
unpack1 m short 11.119k i/100ms
unpack m long 36.000 i/100ms
unpack1 m long 38.000 i/100ms
Calculating -------------------------------------
unpack m short 91.873k (± 6.9%) i/s - 460.590k in 5.040647s
unpack1 m short 131.165k (± 5.3%) i/s - 656.021k in 5.016866s
unpack m long 376.442 (± 4.8%) i/s - 1.908k in 5.082054s
unpack1 m long 362.860 (± 7.7%) i/s - 1.824k in 5.059765s
= AFTER J11 =
jruby ../snippets/unpack1.rb
Ignoring bcrypt-ruby-3.0.0-java because its extensions are not built. Try: gem pristine bcrypt-ruby --version 3.0.0
Warming up --------------------------------------
unpack m short 7.826k i/100ms
unpack1 m short 11.262k i/100ms
unpack m long 73.000 i/100ms
unpack1 m long 75.000 i/100ms
Calculating -------------------------------------
unpack m short 80.625k (± 5.2%) i/s - 406.952k in 5.062985s
unpack1 m short 118.428k (± 3.3%) i/s - 596.886k in 5.045884s
unpack m long 741.003 (± 3.4%) i/s - 3.723k in 5.030753s
unpack1 m long 722.361 (± 7.1%) i/s - 3.600k in 5.010077s
system ~/work/jruby master * 2092%
= MRI =
mri27 ../snippets/unpack1.rb
Warming up --------------------------------------
unpack m short 5.701k i/100ms
unpack1 m short 8.043k i/100ms
unpack m long 80.000 i/100ms
unpack1 m long 78.000 i/100ms
Calculating -------------------------------------
unpack m short 57.531k (± 4.0%) i/s - 290.751k in 5.062749s
unpack1 m short 80.642k (± 5.0%) i/s - 402.150k in 5.000412s
unpack m long 805.912 (± 3.1%) i/s - 4.080k in 5.067892s
unpack1 m long 800.931 (± 5.2%) i/s - 4.056k in 5.080478s
system ~/work/jruby master * 2087%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment