Skip to content

Instantly share code, notes, and snippets.

@headius
Last active January 1, 2016 06:39
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/8106347 to your computer and use it in GitHub Desktop.
Save headius/8106347 to your computer and use it in GitHub Desktop.
It's time to build Drip support into the 'jruby' command.
system ~/projects/jruby/testapp $ ls -l
total 48
-rw-rw-rw- 1 headius staff 1123 Dec 23 16:52 Gemfile
-rw-rw-rw- 1 headius staff 3051 Dec 23 16:52 Gemfile.lock
-rw-rw-rw- 1 headius staff 478 Dec 23 16:52 README.rdoc
-rw-rw-rw- 1 headius staff 252 Dec 23 16:52 Rakefile
drwxrwxrwx 8 headius staff 272 Dec 23 16:52 app
drwxr-xr-x 2 headius staff 170 Dec 23 16:52 bin
drwxrwxrwx 5 headius staff 340 Dec 23 16:52 config
-rw-rw-rw- 1 headius staff 154 Dec 23 16:52 config.ru
drwxrwxrwx 2 headius staff 204 Dec 23 16:55 db
-rw-r--r-- 1 headius staff 60 Dec 23 16:56 dripmain.rb
drwxrwxrwx 4 headius staff 136 Dec 23 16:52 lib
drwxrwxrwx 2 headius staff 170 Dec 23 16:55 log
drwxrwxrwx 2 headius staff 238 Dec 23 16:52 public
drwxrwxrwx 8 headius staff 306 Dec 23 16:52 test
drwxrwxrwx 3 headius staff 102 Dec 23 16:52 tmp
drwxrwxrwx 3 headius staff 102 Dec 23 16:52 vendor
system ~/projects/jruby/testapp $ cat dripmain.rb
require File.expand_path('../config/application', __FILE__)
system ~/projects/jruby/testapp $ time jruby -e 1
real 0m1.361s
user 0m1.983s
sys 0m0.193s
system ~/projects/jruby/testapp $ time jruby --drip -e 1
real 0m0.219s
user 0m0.061s
sys 0m0.074s
system ~/projects/jruby/testapp $ time jruby -S gem list > /dev/null
real 0m2.268s
user 0m3.334s
sys 0m0.302s
system ~/projects/jruby/testapp $ time jruby --drip -S gem list > /dev/null
real 0m0.331s
user 0m0.060s
sys 0m0.071s
system ~/projects/jruby/testapp $ time jruby -S rake -T > /dev/null
real 0m4.715s
user 0m6.449s
sys 0m0.570s
system ~/projects/jruby/testapp $ time jruby --drip -S rake -T > /dev/null
real 0m0.643s
user 0m0.063s
sys 0m0.075s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment