Skip to content

Instantly share code, notes, and snippets.

@jmcnevin
Last active December 15, 2015 02:49
Show Gist options
  • Save jmcnevin/5189868 to your computer and use it in GitHub Desktop.
Save jmcnevin/5189868 to your computer and use it in GitHub Desktop.
Drip and jruby 1.7.3
rvm use jruby-1.7.3@driptest --create
export JRUBY_OPTS="--1.9 -J-Xmx2048m -J-Xms2048m -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify"
# export JRUBY_OPTS="--1.9 -J-Xmx2048m -J-Xms2048m"
if [ -f /usr/local/bin/drip ];
then
export JAVACMD=`which drip`
export DRIP_INIT_CLASS=org.jruby.main.DripMain
fi
@Jere ➜ java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
@Jere ➜ drip version
drip version "0.2.3" package
@Jere ➜ jruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_17-b02 [darwin-x86_64]
@Jere ➜ drip ps
30833 org.flatland.drip.Main org.jruby.Main /Users/jeremy/.drip/0.2.3/c9dcd998db2ee94285642230724f181cdf2ce37c/30810-1 -Djdk.home= -Djruby.home=/Users/jeremy/.rvm/rubies/jruby-1.7.3 -Djruby.script=jruby -Djruby.shell=/bin/sh -Djffi.boot.library.path=/Users/jeremy/.rvm/rubies/jruby-1.7.3/lib/native/Darwin -Xss2048k -Djruby.memory.max=2048m -Djruby.stack.max=2048k -Xbootclasspath/a:/Users/jeremy/.rvm/rubies/jruby-1.7.3/lib/jruby.jar -Dfile.encoding=UTF-8 -Xmx2048m -Xms2048m -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -Djava.awt.headless=true
@Jere ➜ time jruby -e 'puts 9 * 9'
81
jruby -e 'puts 9 * 9' 0.08s user 0.08s system 15% cpu 1.020 total
@Jere ➜ drip ps
30908 org.flatland.drip.Main org.jruby.Main /Users/jeremy/.drip/0.2.3/c9dcd998db2ee94285642230724f181cdf2ce37c/30883-1 -Djdk.home= -Djruby.home=/Users/jeremy/.rvm/rubies/jruby-1.7.3 -Djruby.script=jruby -Djruby.shell=/bin/sh -Djffi.boot.library.path=/Users/jeremy/.rvm/rubies/jruby-1.7.3/lib/native/Darwin -Xss2048k -Djruby.memory.max=2048m -Djruby.stack.max=2048k -Xbootclasspath/a:/Users/jeremy/.rvm/rubies/jruby-1.7.3/lib/jruby.jar -Dfile.encoding=UTF-8 -Xmx2048m -Xms2048m -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -Djava.awt.headless=true
@Jere ➜ time jruby -e 'puts 9 * 9'
81
jruby -e 'puts 9 * 9' 0.08s user 0.08s system 15% cpu 1.004 total
@Jere ➜ drip ps
31061 org.flatland.drip.Main org.jruby.Main /Users/jeremy/.drip/0.2.3/c9dcd998db2ee94285642230724f181cdf2ce37c/31036-1 -Djdk.home= -Djruby.home=/Users/jeremy/.rvm/rubies/jruby-1.7.3 -Djruby.script=jruby -Djruby.shell=/bin/sh -Djffi.boot.library.path=/Users/jeremy/.rvm/rubies/jruby-1.7.3/lib/native/Darwin -Xss2048k -Djruby.memory.max=2048m -Djruby.stack.max=2048k -Xbootclasspath/a:/Users/jeremy/.rvm/rubies/jruby-1.7.3/lib/jruby.jar -Dfile.encoding=UTF-8 -Xmx2048m -Xms2048m -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -Djava.awt.headless=true
@Jere ➜ time jruby -e 'puts 9 * 9'
81
jruby -e 'puts 9 * 9' 0.08s user 0.08s system 15% cpu 1.008 total
@Jere ➜ drip ps
31214 org.flatland.drip.Main org.jruby.Main /Users/jeremy/.drip/0.2.3/c9dcd998db2ee94285642230724f181cdf2ce37c/31189-1 -Djdk.home= -Djruby.home=/Users/jeremy/.rvm/rubies/jruby-1.7.3 -Djruby.script=jruby -Djruby.shell=/bin/sh -Djffi.boot.library.path=/Users/jeremy/.rvm/rubies/jruby-1.7.3/lib/native/Darwin -Xss2048k -Djruby.memory.max=2048m -Djruby.stack.max=2048k -Xbootclasspath/a:/Users/jeremy/.rvm/rubies/jruby-1.7.3/lib/jruby.jar -Dfile.encoding=UTF-8 -Xmx2048m -Xms2048m -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -Djava.awt.headless=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment