Search in sources :

Example 1 with BenchmarkSuite

use of com.facebook.presto.benchmark.BenchmarkSuite in project presto by prestodb.

the class HiveBenchmarkQueryRunner method main.

public static void main(String[] args) throws IOException {
    String outputDirectory = requireNonNull(System.getProperty("outputDirectory"), "Must specify -DoutputDirectory=...");
    File tempDir = Files.createTempDir();
    try (LocalQueryRunner localQueryRunner = createLocalQueryRunner(tempDir)) {
        new BenchmarkSuite(localQueryRunner, outputDirectory).runAllBenchmarks();
    } finally {
        FileUtils.deleteRecursively(tempDir);
    }
}
Also used : File(java.io.File) BenchmarkSuite(com.facebook.presto.benchmark.BenchmarkSuite) LocalQueryRunner(com.facebook.presto.testing.LocalQueryRunner)

Aggregations

BenchmarkSuite (com.facebook.presto.benchmark.BenchmarkSuite)1 LocalQueryRunner (com.facebook.presto.testing.LocalQueryRunner)1 File (java.io.File)1