Skip to content

Instantly share code, notes, and snippets.

@headius
Last active September 18, 2019 13:37
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 headius/571cf242714b95f690e059b999088feb to your computer and use it in GitHub Desktop.
Save headius/571cf242714b95f690e059b999088feb to your computer and use it in GitHub Desktop.
JRuby -e startup times on JDK8 and JDK13
$ pickjdk 4 ; time jruby -e 1
New JDK: jdk-08-u202-b08-hotspot
real 0m1.601s
user 0m4.434s
sys 0m0.234s
$ pickjdk 4 ; time jruby --dev -e 1
New JDK: jdk-08-u202-b08-hotspot
real 0m1.216s
user 0m1.646s
sys 0m0.162s
$ pickjdk 4 ; time jruby --disable-gems --dev -e 1
New JDK: jdk-08-u202-b08-hotspot
real 0m0.853s
user 0m1.030s
sys 0m0.113s
$ pickjdk 10 ; time jruby -J-XX:SharedArchiveFile=jruby.jsa -e 1
New JDK: jdk-13.jdk
real 0m1.491s
user 0m3.378s
sys 0m0.220s
$ pickjdk 10 ; time jruby --dev -J-XX:SharedArchiveFile=jruby.jsa -e 1
New JDK: jdk-13.jdk
real 0m1.089s
user 0m1.644s
sys 0m0.133s
$ pickjdk 10 ; time jruby --dev --disable-gems -J-XX:SharedArchiveFile=jruby.jsa -e 1
New JDK: jdk-13.jdk
real 0m0.717s
user 0m0.944s
sys 0m0.110s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment