From 94e5dc075b397702ef9c1d877c8817d691a5434e Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Thu, 3 Dec 2015 14:25:51 -0700 Subject: [PATCH] Change default stress batch size to 5000 10000 is too large and causes a lot of allocations. 5000 doubles the throughput. --- stress/stress_test.go | 4 ++-- stress/template.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stress/stress_test.go b/stress/stress_test.go index a3b7c2b18f..1e5b35e417 100644 --- a/stress/stress_test.go +++ b/stress/stress_test.go @@ -554,8 +554,8 @@ func Test_NewConfigWithoutFile(t *testing.T) { if wc.Precision != "n" { t.Errorf("Expected n got %s", wc.Precision) } - if wc.BatchSize != 10000 { - t.Errorf("Expected 10000 got %v", wc.BatchSize) + if wc.BatchSize != 5000 { + t.Errorf("Expected 5000 got %v", wc.BatchSize) } if wc.BatchInterval != "0s" { t.Errorf("Expected 0s got %v", wc.BatchInterval) diff --git a/stress/template.go b/stress/template.go index 3707bc4299..55e9fde38b 100644 --- a/stress/template.go +++ b/stress/template.go @@ -36,7 +36,7 @@ var s = ` address = "localhost:8086" database = "stress" precision = "n" - batch_size = 10000 + batch_size = 5000 batch_interval = "0s" concurrency = 10 ssl = false