Skip to content

Commit 367811e

Browse files
authored
Merge pull request #57 from vjovanov/fix-graal-arguments
Fix GraalVM arguments in the README
2 parents 0666a94 + d09ae00 commit 367811e

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sbt> compilation/jmh:run -help
3131
- (optional) add new Scala sources (say `aardvark`) to a new directory in src/main/corpus
3232

3333
```
34-
compilation/jmh:run (Cold|Warm|Hot)CompilationBenchmark
34+
compilation/jmh:run (Cold|Warm|Hot)CompilationBenchmark
3535
-p source=(<subdir of corpus>|/path/to/src/dir|@/path/to/argsfile)
3636
-p extraArgs=-nowarn
3737
# Note: `extraArgs` accepts multiple `|`-separated compiler arguments
@@ -42,8 +42,8 @@ compilation/jmh:run (Cold|Warm|Hot)CompilationBenchmark
4242
Avoid the tedium of typing all that out with:
4343

4444
```
45-
sbt> hot -psource=scalap
46-
sbt> cold -psource=better-files
45+
sbt> hot -psource=scalap
46+
sbt> cold -psource=better-files
4747
```
4848

4949
### Changing Scala Version
@@ -63,8 +63,8 @@ List classpath entries for dependencies in a file `/path/to/corpus/deps.txt`.
6363
- Replace `jmh/run` with `jmh:runMain scala.bench.UploadingRunner`
6464

6565
Results will be uploading into an [InfluxDB]() instance at `https://scala-ci.typesafe.com/influx/`. An quick introduction to InfluxDB is [here](https://github.com/scala/compiler-benchmark/wiki/InfluxDB-101).
66-
67-
These results will be plotted in our [Grafana dashboard](https://scala-ci.typesafe.com/grafana/dashboard/db/scala-benchmark)
66+
67+
These results will be plotted in our [Grafana dashboard](https://scala-ci.typesafe.com/grafana/dashboard/db/scala-benchmark)
6868

6969
The [https://github.com/scala/compiler-benchq](scala/compiler-benchq) project triggers benchmarks
7070
for merges and sets of commits that we're backtesting (UI on https://scala-ci.typesafe.com/benchq).
@@ -75,21 +75,23 @@ for merges and sets of commits that we're backtesting (UI on https://scala-ci.ty
7575
sbt> .../jmh:run Benchmark -prof jmh.extras.JFR // Java Flight Recorder
7676
```
7777

78-
### Using Graal
78+
### Using GraalVM
79+
80+
[Install](http://www.oracle.com/technetwork/oracle-labs/program-languages/downloads/index.html) GraalVM for you operating system.
81+
82+
To run benchmarks on Linux:
7983

80-
[Install](http://www.oracle.com/technetwork/oracle-labs/program-languages/downloads/index.html) Graal VM and JDK8 with [JVMCI](http://openjdk.java.net/jeps/243).
84+
```
85+
sbt> compilation/jmh:run CompileSourcesBenchmark -jvm /path/to/graalvm/bin/java
86+
```
8187

88+
And on OS X:
8289
```
83-
compilation/jmh:run CompileSourcesBenchmark
84-
-jvm /path/to/labsjdk1.8.0_92-jvmci-0.20/bin/java
85-
-jvmArgs -XX:+UnlockExperimentalVMOptions
86-
-jvmArgs -XX:+EnableJVMCI
87-
-jvmArgs -Djvmci.class.path.append=/path/to/graalvm-0.15-re/lib/jvmci/graal.jar
88-
-jvmArgs -Xbootclasspath/a:/path/to/graalvm-0.15-re/lib/truffle-api.jar
89-
-jvmArgs -Djvmci.Compiler=graal
90-
-jvmArgs -XX:+UseJVMCICompiler
90+
sbt> compilation/jmh:run CompileSourcesBenchmark -jvm /path/to/graalvm/Contents/Home/bin/java
9191
```
9292

93+
To run only the open-source version of GraalVM add `-jvmArgs -Dgraal.CompilerConfiguration=core` to the command.
94+
9395
### Exporting an args file from SBT
9496

9597

0 commit comments

Comments
 (0)