mirror of https://github.com/etcd-io/dbtester.git
control: replace interval with request-rate
This commit is contained in:
parent
5ac7466be5
commit
1cd6cf534a
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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" {
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue