Run executes the benchmark runs.
()
| 117 | |
| 118 | // Run executes the benchmark runs. |
| 119 | func (r *Runner) Run() error { |
| 120 | for n := 1; n <= r.config.NumWarmupRuns; n++ { |
| 121 | if err := r.run(n, false); err != nil { |
| 122 | log.Fatalf("Runner error: %s", err) |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | for n := 1; n <= r.config.NumRuns; n++ { |
| 127 | if err := r.run(n, true); err != nil { |
| 128 | log.Fatalf("Runner error: %s", err) |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | return nil |
| 133 | } |
| 134 | |
| 135 | // setup re-creates the index for a benchmark run. |
| 136 | func (r *Runner) setup() error { |