Skip to content

Commit 6e398ef

Browse files
committed
fix: send benchmark results to file and console
1 parent 46db760 commit 6e398ef

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/nightly_bench.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ jobs:
4242
- name: Bench
4343
run: |
4444
set -e
45-
build/Release/benchmarks/benchmarks --benchmark_report_aggregates_only=false --benchmark_format=json > bench_results.json
45+
build/Release/benchmarks/benchmarks \
46+
--benchmark_out=bench_results.json \
47+
--benchmark_out_format=json \
48+
--benchmark_report_aggregates_only=false
4649
4750
- name: Upload benchmarks to InfluxDB
4851
env:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ logs/
1010
# ENVIRONMENT
1111
.env
1212
.env.*
13-
1413
# COVERAGE
1514
lcov.info
1615
sonar-coverage.xml
17-
16+
# BENCHMARK
17+
bench_results.json
1818
# TODO: Understand the auto-generation of this file
1919
CMakeUserPresets.json
2020

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ test:
6969
bench:
7070
$(call pp,assuming `make build-release` has been called)
7171
cmake --build --preset release
72-
build/Release/benchmarks/benchmarks --benchmark_report_aggregates_only=false
73-
# build/Release/benchmarks/benchmarks --benchmark_report_aggregates_only=false --benchmark_format=json > bench_results.json
72+
build/Release/benchmarks/benchmarks \
73+
--benchmark_out=bench_results.json \
74+
--benchmark_out_format=json \
75+
--benchmark_report_aggregates_only=false
76+
7477

7578
## tidy: 🧹 tidy things up before committing code
7679
.PHONY: tidy

0 commit comments

Comments
 (0)