Skip to content

Instantly share code, notes, and snippets.

@bernd
Forked from BanzaiMan/gist:6450251
Created September 5, 2013 14:19
Show Gist options
  • Save bernd/6450724 to your computer and use it in GitHub Desktop.
Save bernd/6450724 to your computer and use it in GitHub Desktop.
JRuby startup tuning (TieredCompilation)
$ jruby -v
jruby 1.7.5.dev (1.9.3p392) 2013-09-04 090d5dd on Java HotSpot(TM) 64-Bit Server VM 1.7.0_25-b15 [darwin-x86_64]
$ time jruby -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Xverify:none -e 'require "rails"'
jruby -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Xverify:none -e 5.18s user 0.47s system 136% cpu 4.142 total
$ time jruby -e 'require "rails"'
jruby -e 'require "rails"' 14.60s user 0.44s system 202% cpu 7.444 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment