Search in sources :

Example 1 with BenchmarkRunner

use of com.mongodb.benchmark.framework.BenchmarkRunner in project mongo-java-driver by mongodb.

the class GridFSMultiFileDownloadBenchmark method main.

public static void main(String[] args) throws Exception {
    BenchmarkResult benchmarkResult = new BenchmarkRunner(new GridFSMultiFileDownloadBenchmark(), 20, 100).run();
    new TextBasedBenchmarkResultWriter(System.out, false, true).write(benchmarkResult);
}
Also used : TextBasedBenchmarkResultWriter(com.mongodb.benchmark.framework.TextBasedBenchmarkResultWriter) BenchmarkResult(com.mongodb.benchmark.framework.BenchmarkResult) BenchmarkRunner(com.mongodb.benchmark.framework.BenchmarkRunner)

Example 2 with BenchmarkRunner

use of com.mongodb.benchmark.framework.BenchmarkRunner in project mongo-java-driver by mongodb.

the class MultiFileExportBenchmark method main.

public static void main(String[] args) throws Exception {
    BenchmarkResult benchmarkResult = new BenchmarkRunner(new MultiFileExportBenchmark(), 0, 1).run();
    new TextBasedBenchmarkResultWriter(System.out).write(benchmarkResult);
}
Also used : TextBasedBenchmarkResultWriter(com.mongodb.benchmark.framework.TextBasedBenchmarkResultWriter) BenchmarkResult(com.mongodb.benchmark.framework.BenchmarkResult) BenchmarkRunner(com.mongodb.benchmark.framework.BenchmarkRunner)

Example 3 with BenchmarkRunner

use of com.mongodb.benchmark.framework.BenchmarkRunner in project mongo-java-driver by mongodb.

the class GridFSMultiFileUploadBenchmark method main.

public static void main(String[] args) throws Exception {
    BenchmarkResult benchmarkResult = new BenchmarkRunner(new GridFSMultiFileUploadBenchmark(), 4, 10).run();
    new TextBasedBenchmarkResultWriter(System.out).write(benchmarkResult);
}
Also used : TextBasedBenchmarkResultWriter(com.mongodb.benchmark.framework.TextBasedBenchmarkResultWriter) BenchmarkResult(com.mongodb.benchmark.framework.BenchmarkResult) BenchmarkRunner(com.mongodb.benchmark.framework.BenchmarkRunner)

Example 4 with BenchmarkRunner

use of com.mongodb.benchmark.framework.BenchmarkRunner in project mongo-java-driver by mongodb.

the class MultiFileImportBenchmark method main.

public static void main(String[] args) throws Exception {
    BenchmarkResult benchmarkResult = new BenchmarkRunner(new MultiFileImportBenchmark(), 10, 100).run();
    new TextBasedBenchmarkResultWriter(System.out, true, true).write(benchmarkResult);
}
Also used : TextBasedBenchmarkResultWriter(com.mongodb.benchmark.framework.TextBasedBenchmarkResultWriter) BenchmarkResult(com.mongodb.benchmark.framework.BenchmarkResult) BenchmarkRunner(com.mongodb.benchmark.framework.BenchmarkRunner)

Example 5 with BenchmarkRunner

use of com.mongodb.benchmark.framework.BenchmarkRunner in project mongo-java-driver by mongodb.

the class BenchmarkSuite method runBenchmark.

private static void runBenchmark(final Benchmark benchmark) throws Exception {
    long startTime = System.currentTimeMillis();
    BenchmarkResult benchmarkResult = new BenchmarkRunner(benchmark, NUM_WARMUP_ITERATIONS, NUM_ITERATIONS, MIN_TIME_SECONDS, MAX_TIME_SECONDS).run();
    long endTime = System.currentTimeMillis();
    System.out.println(benchmarkResult.getName() + ": " + (endTime - startTime) / 1000.0);
    for (BenchmarkResultWriter writer : WRITERS) {
        writer.write(benchmarkResult);
    }
}
Also used : BenchmarkResult(com.mongodb.benchmark.framework.BenchmarkResult) BenchmarkResultWriter(com.mongodb.benchmark.framework.BenchmarkResultWriter) EvergreenBenchmarkResultWriter(com.mongodb.benchmark.framework.EvergreenBenchmarkResultWriter) BenchmarkRunner(com.mongodb.benchmark.framework.BenchmarkRunner)

Aggregations

BenchmarkResult (com.mongodb.benchmark.framework.BenchmarkResult)5 BenchmarkRunner (com.mongodb.benchmark.framework.BenchmarkRunner)5 TextBasedBenchmarkResultWriter (com.mongodb.benchmark.framework.TextBasedBenchmarkResultWriter)4 BenchmarkResultWriter (com.mongodb.benchmark.framework.BenchmarkResultWriter)1 EvergreenBenchmarkResultWriter (com.mongodb.benchmark.framework.EvergreenBenchmarkResultWriter)1