Codebase list golang-github-hashicorp-serf / 52e5edb
Tightens up thresholds in performance tests. James Phillips 8 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1515 truth := GenerateLine(nodes, spacing)
1616 Simulate(clients, truth, cycles, nil)
1717 stats := Evaluate(clients, truth)
18 if stats.ErrorAvg > 0.004 || stats.ErrorMax > 0.015 {
18 if stats.ErrorAvg > 0.0012 || stats.ErrorMax > 0.0055 {
1919 t.Fatalf("performance stats are out of spec: %v", stats)
2020 }
2121 }
3131 truth := GenerateGrid(nodes, spacing)
3232 Simulate(clients, truth, cycles, nil)
3333 stats := Evaluate(clients, truth)
34 if stats.ErrorAvg > 0.005 || stats.ErrorMax > 0.051 {
34 if stats.ErrorAvg > 0.0014 || stats.ErrorMax > 0.0158 {
3535 t.Fatalf("performance stats are out of spec: %v", stats)
3636 }
3737 }
4747 truth := GenerateSplit(nodes, lan, wan)
4848 Simulate(clients, truth, cycles, nil)
4949 stats := Evaluate(clients, truth)
50 if stats.ErrorAvg > 0.044 || stats.ErrorMax > 0.343 {
50 if stats.ErrorAvg > 0.000057 || stats.ErrorMax > 0.00035 {
5151 t.Fatalf("performance stats are out of spec: %v", stats)
5252 }
5353 }
6363 truth := GenerateRandom(nodes, mean, deviation)
6464 Simulate(clients, truth, cycles, nil)
6565 stats := Evaluate(clients, truth)
66 if stats.ErrorAvg > 0.079 || stats.ErrorMax > 0.363 {
66 if stats.ErrorAvg > 0.046 || stats.ErrorMax > 0.184 {
6767 t.Fatalf("performance stats are out of spec: %v", stats)
6868 }
6969 }