https://github.com/rescript-lang/build-benchmark
https://github.com/rescript-lang/build-benchmark
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rescript-lang/build-benchmark
- Owner: rescript-lang
- Created: 2017-12-21T02:14:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T10:15:02.000Z (over 4 years ago)
- Last Synced: 2025-01-10T09:28:45.034Z (10 months ago)
- Language: Standard ML
- Size: 5.86 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Credits: Modified from http://blog.camlcity.org/blog/omake1.html
run `ocaml gen.ml` to generate a performance test for bsb
The test involves the generation of DR * DC directories, the
"directory matrix", and each directory contains MR * MC modules,
the "module matrix". The module in row r and column c of the module
matrix depends on all modules in the previous row of the same
directory. The first row of modules in a directory depends on
all modules in the preceding row of directories.
The test setup also permits a lot of parallelism for actually executing
the rules: the modules in the same row can be compiled in parallel,
as well as the directories in the same row.
Every module includes a big comment, so that the size of the files
is not super-small.
To test it:
```sh
ocaml unix.cma gen.ml -n 4 test
cd test && npm install rescript && time ./node_modules/rescript/{your-platform}/rescript.exe
```