Add more sophisticated buffer benchmark system

This commit is contained in:
Philipp Emanuel Weidmann
2020-03-01 13:20:10 +05:30
parent 9e8d76f2fa
commit d038d3040f
5 changed files with 250 additions and 99 deletions

View File

@@ -65,7 +65,21 @@ test:
go test ./internal/...
bench:
go test -bench=. ./internal/...
for i in 1 2 3; do \
go test -bench=. ./internal/...; \
done > benchmark_results
benchstat benchmark_results
bench-baseline:
for i in 1 2 3; do \
go test -bench=. ./internal/...; \
done > benchmark_results_baseline
bench-compare:
for i in 1 2 3; do \
go test -bench=. ./internal/...; \
done > benchmark_results
benchstat benchmark_results_baseline benchmark_results
clean:
rm -f micro