Created
January 8, 2014 23:55
-
-
Save chrisseaton/8327014 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make a new clean directory to do all this in | |
mkdir truffle-test | |
cd truffle-test | |
# Get JRuby and Graal | |
curl http://lafo.ssw.uni-linz.ac.at/graalvm/openjdk-8-graalvm-b122-macosx-x86_64-9cd47b39b0ef1bfbf2c67d6030bbf2617bea819d.tar.gz | tar -zx | |
git clone git://jruby.org/jruby.git | |
cd jruby | |
# We want the Truffle branch | |
git checkout -b truffle origin/truffle | |
# Build everything | |
mvn package | |
# Go to the benchmarks | |
cd bench/truffle | |
# Run with Truffle and Graal | |
JAVACMD=../../../graalvm-jdk1.8.0/bin/java ../../bin/jruby -J-server -J-d64 -Xtruffle -Xtruffle.printRuntime=true harness.rb -s 120 mandelbrot.rb | |
# You should see "jruby: using Graal Truffle Runtime" and "[truffle] optimized..." | |
# It will take over 2 minutes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment