https://github.com/symengine/symengine-bench
Benchmarking tools for SymEngine
https://github.com/symengine/symengine-bench
Last synced: 9 months ago
JSON representation
Benchmarking tools for SymEngine
- Host: GitHub
- URL: https://github.com/symengine/symengine-bench
- Owner: symengine
- Created: 2017-08-25T20:45:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T19:12:22.000Z (over 8 years ago)
- Last Synced: 2025-03-21T15:21:26.542Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 10.7 KB
- Stars: 0
- Watchers: 13
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SymEngine Benchmarks
Here is how to build and run the benchmarks:
```
docker build -t symengine/ubuntu_base ./ubuntu_base
docker build -t symengine/conda_base ./conda_base
docker build -t symengine/symengine --build-arg COMMIT=master ./symengine
docker run -it -p 8888:8888 symengine/symengine jupyter notebook --ip='*' --no-browser
```
Then open the `Plots.ipynb` notebook and execute it. It will produce graphs of
the benchmarks.
## Compare two commits
We can compare two commits as follows. The commit 398a3f39 should be faster
than fdf132fc.
```
COMMIT=398a3f39
docker build -t symengine/symengine:$COMMIT --build-arg COMMIT=$COMMIT ./symengine
docker run -t -v `pwd`:/opt/ symengine/symengine:$COMMIT bash run_copy.sh
cp data.json data-$COMMIT.json
COMMIT=fdf132fc
docker build -t symengine/symengine:$COMMIT --build-arg COMMIT=$COMMIT ./symengine
docker run -t -v `pwd`:/opt/ symengine/symengine:$COMMIT bash run_copy.sh
cp data.json data-$COMMIT.json
```
And locally execute the `Plot-two.ipynb` notebook:
```
jupyter notebook Plot-two.ipynb
```
Which will plot the two `data-*.json` files.