-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(benchmarks): running benchmarks and adding results to the repo
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Benchmarks | ||
|
||
## Running the benchmarks and storing the results | ||
|
||
1. Run for the repository root | ||
2. Make sure the target `arkscript` has been compiled in release mode, as well as `bench` | ||
```bash | ||
result="tests/benchmarks/results/$(set -- tests/benchmarks/results/*.csv; echo $#)-$(git rev-parse --short HEAD).csv" | ||
cmake-build-release/bench \ | ||
--benchmark_min_warmup_time=1 \ | ||
--benchmark_format=csv \ | ||
--benchmark_time_unit=ms \ | ||
--v=0 | grep -Ev "(New parser|Welder)" > $result | ||
``` | ||
|
||
## Generate the comparison | ||
|
||
```bash | ||
python3 tests/benchmarks/compare.py tests/benchmarks/results/*.csv | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name,iterations,real_time,cpu_time,time_unit,bytes_per_second,items_per_second,label,error_occurred,error_message | ||
"quicksort",4601,0.150416,0.150228,ms,,,,, | ||
"ackermann/iterations:50",50,59.9067,59.8294,ms,,,,, | ||
"fibonacci/iterations:100",100,6.27221,6.26509,ms,,,,, | ||
"man_or_boy",45605,0.0153367,0.015325,ms,,,,, |