1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
# Benchmarks
These benchmarks are used to generate charts such as the ones available at https://ocsigen.org/js_of_ocaml/dev/manual/performances.
## Quick start
```
# build/copy additionnal bytecode executable inside `./programs/`
# used when generating the size report.
make copy-extra-bc
# Tune run.config to fit your environment
# running `make` will
# build all benchmarks to bytecode, native and javascript
# compute sizes of artifacts
# run benchmarks and record timings
# generate a bunch pdf reports
make
```
## Contents
| Filename | Description |
| ----------- | -------------------------------------------- |
| sources/ml | OCaml benchmarks |
| sources/js | JavaScript benchmarks |
| run.exe | Generate size and timing data |
| run.config | Configure available js interpreter |
| report.exe | Generate reports using gnuplot |
| report-*.config | config read by report.exe to generate a report |
|