Skip to content

Commit

Permalink
[Truffle] How to compile the C extension benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Nov 21, 2016
1 parent 1390929 commit e4331c3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions truffle/README.md
Expand Up @@ -245,8 +245,13 @@ If you want to test `libxml`, remove that flag and set either `LIBXML_HOME` or
`LIBXML_INCLUDE` and `LIBXML_LIB`. Try the same with `OPENSSL_` if you are
adventurous.

To run C extension bechmarks, follow the instructions for benchmarking above,
and then try.
To run C extension bechmarks, you first need to compile them.

```
$ jt cextc .../all-ruby-benchmarks/chunky_png/oily_png/
```

Then follow the instructions for benchmarking above, and then try:

```
$ USE_CEXTS=true JRUBY_OPTS=-Xtruffle.cexts.log.load=true jt benchmark .../all-ruby-benchmarks/chunky_png/chunky-color-r.rb --simple
Expand Down

0 comments on commit e4331c3

Please sign in to comment.