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

Add JRuby #30

Open
headius opened this issue Nov 23, 2021 · 1 comment
Open

Add JRuby #30

headius opened this issue Nov 23, 2021 · 1 comment

Comments

@headius
Copy link

headius commented Nov 23, 2021

It might be nice to include JRuby, since we appear to be faster than all recent CRuby versions.

On my system (using OpenJDK 11):

[] ~/projects/raytracer/ruby $ rvm ruby-2.7.0 do ruby RayTracer.rb 
Completed in 20886.185999999998 ms

[] ~/projects/raytracer/ruby $ rvm ruby-3.0.2 do ruby RayTracer.rb 
Completed in 16813.604000000003 ms

[] ~/projects/raytracer/ruby $ rvm jruby-9.3.0.0 do ruby RayTracer.rb 
Ignoring executable-hooks-1.6.1 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6.1
Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0
Completed in 13248.208 ms

[] ~/projects/raytracer/ruby $ rvm jruby-9.3.0.0 do ruby -Xcompile.invokedynamic RayTracer.rb 
Ignoring executable-hooks-1.6.1 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6.1
Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0
Completed in 7894.947999999999 ms

If this scales the same way on your end it would put the JRuby results somewhere between HHVM and PHP, which I'd like to see. 😀

@edin
Copy link
Owner

edin commented Nov 23, 2021

Hi, I'll try and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants