Skip to content

Instantly share code, notes, and snippets.

@jhawthorn
Created February 7, 2018 01:32
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 jhawthorn/c11203191914359b44380ae4abf24e55 to your computer and use it in GitHub Desktop.
Save jhawthorn/c11203191914359b44380ae4abf24e55 to your computer and use it in GitHub Desktop.
$ ruby -v
truffleruby 0.30.2, like ruby 2.3.5 <Java HotSpot(TM) 64-Bit Server VM 1.8.0_151-b12 with Graal> [linux-x86_64]
$ time =ruby -e ''
=ruby -e '' 16.52s user 0.37s system 350% cpu 4.821 total
$ time =ruby --native -e ''
=ruby --native -e '' 0.12s user 0.03s system 98% cpu 0.159 total
$ time =ruby 15a.rb
600
=ruby 15a.rb 34.36s user 0.92s system 275% cpu 12.812 total
$ time =ruby --native 15a.rb
600
=ruby --native 15a.rb 20.87s user 0.46s system 100% cpu 21.306 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment