Skip to content

Instantly share code, notes, and snippets.

@smarr
Last active May 28, 2016 15:05
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 smarr/432136f45918ac85550f6d63be748f54 to your computer and use it in GitHub Desktop.
Save smarr/432136f45918ac85550f6d63be748f54 to your computer and use it in GitHub Desktop.
## get all the code
git clone --depth=1 https://github.com/graalvm/mx.git
git clone --depth=1 https://github.com/graalvm/graal-core.git
git clone --depth=1 https://github.com/smarr/are-we-fast-yet.git
git clone --depth=1 https://github.com/jruby/jruby.git
## build Graal as jvmci vm, i.e., with graal-core as top tier compiler
cd graal-core
../mx/mx --vm jvmci build
## build JRuby
cd ../jruby
## mvn might need JAVA_HOME: export JAVA_HOME=$(/usr/libexec/java_home)
./mvnw
## run Richards
cd ../are-we-fast-yet/benchmarks/Ruby
## JDK version number might differ below
/home/smarr/Projects/graal-graal/jvmci/jdk1.8.0_91/product/bin/java
export JAVACMD=../../../jvmci/jdk1.8.0_91/product/bin/java
../../../jruby/bin/jruby harness.rb Richards 250 100
Output:
Starting Richards benchmark ...
NoMethodError: undefined method `link' for nil:NilClass
block in create_handler at benchmarks/Ruby/richards.rb:125
run_task at benchmarks/Ruby/richards.rb:447
schedule at benchmarks/Ruby/richards.rb:276
start at benchmarks/Ruby/richards.rb:205
benchmark at benchmarks/Ruby/richards.rb:35
block in inner_benchmark_loop at harness.rb:23
times at org/jruby/RubyFixnum.java:291
inner_benchmark_loop at harness.rb:22
measure at harness.rb:76
block in do_runs at harness.rb:87
times at org/jruby/RubyFixnum.java:291
do_runs at harness.rb:87
run_benchmark at harness.rb:69
<top> at harness.rb:130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment