control: replace interval with request-rate

This commit is contained in:
Gyu-Ho Lee 2016-12-20 12:48:47 -08:00
parent 5ac7466be5
commit 1cd6cf534a
No known key found for this signature in database
GPG Key ID: 1DDD39C7EB70C24C
3 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ type Config struct {
SameKey bool `yaml:"same_key"`
ValueSize int `yaml:"value_size"`
TotalRequests int `yaml:"total_requests"`
RequestIntervalMs int `yaml:"request_interval_ms"`
RequestsPerSecond int `yaml:"requests_per_second"`
} `yaml:"step2"`
Step3 struct {

View File

@ -89,8 +89,8 @@ func TestReadConfig(t *testing.T) {
if c.Step2.TotalRequests != 2000000 {
t.Fatalf("unexpected %d", c.Step2.TotalRequests)
}
if c.Step2.RequestIntervalMs != 100 {
t.Fatalf("unexpected %d", c.Step2.RequestIntervalMs)
if c.Step2.RequestsPerSecond != 100 {
t.Fatalf("unexpected %d", c.Step2.RequestsPerSecond)
}
if c.Step3.Action != "stop" {

View File

@ -34,7 +34,7 @@ step2:
same_key: true
value_size: 256
total_requests: 2000000
request_interval_ms: 100
requests_per_second: 100
# after benchmark
step3: