|
39 | 39 | @SuppressWarnings({"rawtypes", "unchecked"})
|
40 | 40 | public class BenchmarkSuite {
|
41 | 41 |
|
42 |
| - private static final int NUM_WARMUP_ITERATIONS = 1; |
43 |
| - private static final int NUM_ITERATIONS = 100; |
44 |
| - private static final int MIN_TIME_SECONDS = 60; |
45 |
| - private static final int MAX_TIME_SECONDS = 300; |
| 42 | + protected static final int NUM_WARMUP_ITERATIONS = 1; |
| 43 | + protected static final int NUM_ITERATIONS = 100; |
| 44 | + protected static final int MIN_TIME_SECONDS = 60; |
| 45 | + protected static final int MAX_TIME_SECONDS = 300; |
46 | 46 |
|
47 |
| - private static final Class DOCUMENT_CLASS = Document.class; |
48 |
| - private static final IdRemover<Document> ID_REMOVER = document -> document.remove("_id"); |
49 |
| - private static final Codec<Document> DOCUMENT_CODEC = getDefaultCodecRegistry().get(DOCUMENT_CLASS); |
| 47 | + protected static final Class DOCUMENT_CLASS = Document.class; |
| 48 | + protected static final IdRemover<Document> ID_REMOVER = document -> document.remove("_id"); |
| 49 | + protected static final Codec<Document> DOCUMENT_CODEC = getDefaultCodecRegistry().get(DOCUMENT_CLASS); |
50 | 50 |
|
51 |
| - private static final List<BenchmarkResultWriter> WRITERS = Arrays.asList( |
| 51 | + protected static final List<BenchmarkResultWriter> WRITERS = Arrays.asList( |
52 | 52 | new EvergreenBenchmarkResultWriter());
|
53 | 53 |
|
54 | 54 | public static void main(String[] args) throws Exception {
|
@@ -120,7 +120,7 @@ private static void runMongoCryptBenchMarks() throws InterruptedException {
|
120 | 120 | }
|
121 | 121 | }
|
122 | 122 |
|
123 |
| - private static void runBenchmark(final Benchmark benchmark) throws Exception { |
| 123 | + protected static void runBenchmark(final Benchmark benchmark) throws Exception { |
124 | 124 | long startTime = System.currentTimeMillis();
|
125 | 125 | BenchmarkResult benchmarkResult = new BenchmarkRunner(benchmark, NUM_WARMUP_ITERATIONS, NUM_ITERATIONS, MIN_TIME_SECONDS,
|
126 | 126 | MAX_TIME_SECONDS).run();
|
|
0 commit comments