2023-03-28 18:56:24 +03:00
|
|
|
# Engine benchmarks
|
|
|
|
|
|
|
|
This directory contains a python script `bench_download.py` for downloading
|
2023-09-06 17:30:52 +03:00
|
|
|
Engine and stdlib benchmark results from GitHub, and `Engine_Benchs` Enso
|
|
|
|
project for analysing the downloaded data.
|
2023-03-28 18:56:24 +03:00
|
|
|
|
2024-02-28 20:54:12 +03:00
|
|
|
Note that for convenience, there is `bench_tool` directory that is a Python
|
|
|
|
package. The `bench_download.py` script uses this package.
|
|
|
|
|
|
|
|
To run all the Python tests for that package, run `python -m unittest` in this
|
|
|
|
directory.
|
|
|
|
|
2023-03-28 18:56:24 +03:00
|
|
|
Dependencies for `bench_download.py`:
|
|
|
|
|
|
|
|
- python >= 3.7
|
|
|
|
- `pandas` and `jinja2`
|
|
|
|
- Install, e.g., by `pip install pandas jinja2`
|
|
|
|
- GH CLI utility
|
|
|
|
- Install either from https://cli.github.com/ or with
|
|
|
|
`sudo apt-get install gh`
|
|
|
|
|
|
|
|
Check `bench_download -h` for documentation and usage. Ensure that your
|
2023-09-06 17:30:52 +03:00
|
|
|
`/usr/bin/env python` links to Python version at least 3.7. `bench_download.py`
|
|
|
|
creates `generated_site` directory with HTML files for visualizing the benchmark
|
|
|
|
results.
|
2023-03-28 18:56:24 +03:00
|
|
|
|
|
|
|
One can also analyze the benchmarks in Enso IDE by running
|
|
|
|
`bench_download.py --create-csv` and then running `Engine_Benchs` project. The
|
|
|
|
created CSV is pasted into `Engine_Benchs/data` directory by default.
|