Merge branch 'buffer-benchmarks' of https://github.com/p-e-w/micro into p-e-w-buffer-benchmarks

This commit is contained in:
Zachary Yedidia
2020-05-20 15:28:36 -04:00
5 changed files with 250 additions and 100 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