Add benchmark
Some checks failed
run-checks / run-clang-format (push) Has been cancelled
run-tests / test-on-ubuntu (push) Has been cancelled
run-tests / test-on-windows (push) Has been cancelled
run-tests / test-on-osx (push) Has been cancelled

* add benchmark option
* updated changelog
* added benchmark info to readme
* add bench folder to format.py
This commit is contained in:
Petra Baranski
2025-04-21 01:02:07 +02:00
committed by GitHub
parent 2a00c9fb0b
commit 9ec4777a7b
7 changed files with 152 additions and 2 deletions

View File

@@ -98,6 +98,21 @@ make
make test # or run the executable in ../build/MaddyTests
```
## How to run the benchmarks
To get proper test results, the benchmarks should always be compiled as
release build.
```shell
git clone https://github.com/progsource/maddy.git
cd maddy
mkdir tmp
cd tmp
cmake -DMADDY_BUILD_WITH_BENCH=ON -DCMAKE_BUILD_TYPE=Release ..
make BUILD_TYPE=Release
../build/maddy_benchmark
```
## How to contribute
There are different possibilities: