Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18n benchmark on JRuby from Elixir vs Ruby Showdown #1781

Closed
ylluminate opened this issue Jul 2, 2014 · 1 comment
Closed

I18n benchmark on JRuby from Elixir vs Ruby Showdown #1781

ylluminate opened this issue Jul 2, 2014 · 1 comment

Comments

@ylluminate
Copy link

I noticed this:
http://littlelines.com/blog/2014/06/27/elixir-vs-ruby-showdown-part-one/

From that someone threw together a new implementation for Ruby as per:
https://gist.github.com/vjoel/a021e48b8752d0952dba

When I ran this on jruby-head I got the following results:
$ jruby i18n-intern.rb

                           user     system      total        real
string args           17.200000   0.540000  17.740000 ( 11.824000)
symbol args           10.460000   0.070000  10.530000 (  9.961000)

Which were little more than 2x slower than mri 2.1.2 on my system.

@rtyler
Copy link

rtyler commented Aug 7, 2015

Comparing JRuby 8k to MRI 2.15, 9k is faster on my machine. Regardless I don't know what objective of this ticket is. Please re-open if there's a fix or bug

Results fwiw;

MRI;

➜  1654  ruby i18n-intern.rb 
                           user     system      total        real
string args            4.410000   0.000000   4.410000 (  4.416974)
symbol args            3.900000   0.000000   3.900000 (  3.893375)
➜  1654  

JRuby 9.0.0.0/JDK8

➜  1654  ruby i18n-intern.rb 
                           user     system      total        real
string args            5.220000   0.040000   5.260000 (  3.704205)
symbol args            3.510000   0.010000   3.520000 (  2.928714)
➜  1654  

@rtyler rtyler closed this as completed Aug 7, 2015
@enebo enebo added this to the JRuby 9.0.0.0 milestone Aug 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants