Skip to content

Instantly share code, notes, and snippets.

@enebo
Last active July 24, 2018 20:28
Show Gist options
  • Save enebo/7ce5c166fc89890b2e933954d1f5cb4e to your computer and use it in GitHub Desktop.
Save enebo/7ce5c166fc89890b2e933954d1f5cb4e to your computer and use it in GitHub Desktop.
BEFORE:
jruby ../snippets/match_bench.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 --------------------------------------
match 93.446k i/100ms
match? 103.723k i/100ms
Calculating -------------------------------------
match 2.089M (± 5.8%) i/s - 10.466M in 5.029261s
match? 2.113M (± 4.2%) i/s - 10.580M in 5.015689s
system ~/work/jruby master 1629% jruby -Xcompile.invokedynamic ../snippets/match_bench.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 --------------------------------------
match 111.314k i/100ms
match? 112.788k i/100ms
Calculating -------------------------------------
match 2.244M (± 5.9%) i/s - 11.243M in 5.031571s
match? 2.242M (± 5.9%) i/s - 11.166M in 5.000334s
AFTER:
jruby ../snippets/match_bench.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 --------------------------------------
match 101.191k i/100ms
match? 128.000k i/100ms
Calculating -------------------------------------
match 2.066M (± 5.7%) i/s - 10.321M in 5.012351s
match? 2.752M (± 3.7%) i/s - 13.824M in 5.031864s
system ~/work/jruby master * 1624% jruby -Xcompile.invokedynamic ../snippets/match_bench.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 --------------------------------------
match 100.785k i/100ms
match? 131.476k i/100ms
Calculating -------------------------------------
match 2.159M (± 5.5%) i/s - 10.784M in 5.012759s
match? 2.912M (± 4.8%) i/s - 14.594M in 5.024002s
RUBY 2.5
system ~/work/jruby master * 1625% mri25 ../snippets/match_bench.rb
Warming up --------------------------------------
match 116.528k i/100ms
match? 263.325k i/100ms
Calculating -------------------------------------
match 1.652M (± 3.6%) i/s - 8.273M in 5.014779s
match? 5.267M (± 3.3%) i/s - 26.332M in 5.005661s
system ~/work/jruby master * 1626%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment