Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 automate tests #13

Merged
merged 20 commits into from
May 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#6 Benchmarks
XioZ committed May 13, 2024
commit 3f15af9d7cb09e966536d678056723e3b39253b4
10 changes: 8 additions & 2 deletions test/integration_test.go
Original file line number Diff line number Diff line change
@@ -36,8 +36,14 @@ func TestIntegration_Value_Simple(t *testing.T) {
}

func BenchmarkValue(b *testing.B) {
b.Run("5 nodes: grpc", getTest[*testing.B](5, b.N, minoGRPC))
b.Run("5 nodes: ws", getTest[*testing.B](5, b.N, minoWS))
testGRPC := func(b *testing.B) {
getTest[*testing.B](5, b.N, minoGRPC)(b)
}
testWS := func(b *testing.B) {
getTest[*testing.B](5, b.N, minoWS)(b)
}
b.Run("5 nodes: grpc", testGRPC)
b.Run("5 nodes: ws", testWS)
}

func getTest[T require.TestingT](numNode, numTx int, kind string) func(t T) {