Change default stress batch size to 5000

10000 is too large and causes a lot of allocations.  5000 doubles the
throughput.
pull/4978/head
Jason Wilder 2015-12-03 14:25:51 -07:00
parent 66c9ef862e
commit 94e5dc075b
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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