-
Notifications
You must be signed in to change notification settings - Fork 0
/
bench.sh
executable file
·7 lines (6 loc) · 1006 Bytes
/
bench.sh
1
2
3
4
5
6
7
docker-compose run --rm wait-benchmark-deps
go test -ldflags="-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=ignore" -bench="BenchmarkPostgresSink" -benchmem -benchtime=10x -count=1 -timeout=3h -showModePrefix=true > result/bench-all.out
go test -ldflags="-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=ignore" -bench="BenchmarkPostgresSink" -benchmem -benchtime=10x -count=10 -timeout=3h -modes=default > result/bench-default.out
go test -ldflags="-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=ignore" -bench="BenchmarkPostgresSink" -benchmem -benchtime=10x -count=10 -timeout=3h -modes=pipeline > result/bench-pipeline.out
go test -ldflags="-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=ignore" -bench="BenchmarkPostgresSink" -benchmem -benchtime=10x -count=10 -timeout=3h -modes=native > result/bench-native.out
benchstat result/bench-default.out result/bench-pipeline.out result/bench-native.out > result/benchstat.out