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

Increase parallelism for write benchmarks #182

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion test/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestCreate(t *testing.T) {
// BenchmarkCreate is a benchmark for the Create operation.
func BenchmarkCreate(b *testing.B) {
for _, backendType := range []string{endpoint.SQLiteBackend, endpoint.DQLiteBackend} {
for _, workers := range []int{1, 2, 4, 8, 16} {
for _, workers := range []int{1, 4, 16, 64, 128} {
b.Run(fmt.Sprintf("%s/%d-workers", backendType, workers), func(b *testing.B) {
b.StopTimer()
g := NewWithT(b)
Expand Down
2 changes: 1 addition & 1 deletion test/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestDelete(t *testing.T) {
// BenchmarkDelete is a benchmark for the delete operation.
func BenchmarkDelete(b *testing.B) {
for _, backendType := range []string{endpoint.SQLiteBackend, endpoint.DQLiteBackend} {
for _, workers := range []int{1, 2, 4, 8, 16} {
for _, workers := range []int{1, 4, 16, 64, 128} {
b.Run(fmt.Sprintf("%s/%d-workers", backendType, workers), func(b *testing.B) {
b.StopTimer()
g := NewWithT(b)
Expand Down
2 changes: 1 addition & 1 deletion test/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestUpdate(t *testing.T) {
// BenchmarkUpdate is a benchmark for the Update operation.
func BenchmarkUpdate(b *testing.B) {
for _, backendType := range []string{endpoint.SQLiteBackend, endpoint.DQLiteBackend} {
for _, workers := range []int{1, 2, 4, 8, 16} {
for _, workers := range []int{1, 4, 16, 64, 128} {
b.Run(fmt.Sprintf("%s/%d-workers", backendType, workers), func(b *testing.B) {
b.StopTimer()
g := NewWithT(b)
Expand Down
Loading