Skip to content

Commit

Permalink
Set benchmark timeout to 20m
Browse files Browse the repository at this point in the history
  • Loading branch information
sejongk committed Nov 2, 2023
1 parent 2734b78 commit 86feb8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bench: ## runs benchmark tests
rm -f pipe output.txt mem.prof cpu.prof bench.test
mkfifo pipe
tee output.txt < pipe &
go test -tags bench -benchmem -bench=. ./test/bench -memprofile=mem.prof -cpuprofile=cpu.prof > pipe
go test -tags bench -benchmem -bench=. ./test/bench -memprofile=mem.prof -cpuprofile=cpu.prof -timeout=20m > pipe
rm -f pipe

docker: ## builds docker images with the current version and latest tag
Expand Down
4 changes: 2 additions & 2 deletions test/bench/push_pull_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ func BenchmarkSnapshot(b *testing.B) {
benchmarkPullSnapshot(10000, b, be, project)
})

b.Run("Push 300KB-sized 5 snapshots successively", func(b *testing.B) {
b.Run("Push 30KB-sized 5 snapshots successively", func(b *testing.B) {
// this is for the case the size of the snapshot becomes gradually larger.
benchmarkPushSnapshots(5, 10000, b, be, project)
benchmarkPushSnapshots(5, 1000, b, be, project)
})
}

0 comments on commit 86feb8c

Please sign in to comment.