| 82 | } |
| 83 | |
| 84 | static int round(int n) { |
| 85 | int base = 1; |
| 86 | |
| 87 | while (base * 10 < n) { |
| 88 | base *= 10; |
| 89 | } |
| 90 | if (n < 2 * base) { |
| 91 | return 2 * base; |
| 92 | } |
| 93 | if (n < 5 * base) { |
| 94 | return 5 * base; |
| 95 | } |
| 96 | return 10 * base; |
| 97 | } |
| 98 | |
| 99 | void RunBench(Benchmark* b, int nthread, int siz) { |
| 100 | int n, last; |