Large in memory query benchmark - moving class to performance · graphql-java/graphql-java@f1730cc
1-package benchmark;
1+package performance;
223+import benchmark.BenchmarkUtils;
34import graphql.GraphQL;
45import graphql.schema.GraphQLSchema;
56import graphql.schema.idl.RuntimeWiring;
4041@Warmup(iterations = 2, time = 5)
4142@Measurement(iterations = 2)
4243@Fork(2)
43-public class LargeInMemoryQueryBenchmark {
44+public class LargeInMemoryQueryPerformance {
44454546GraphQL graphQL;
4647volatile boolean shutDown;
@@ -77,7 +78,7 @@ public static void main(String[] args) throws Exception {
7778runAtStartup();
78797980Options opt = new OptionsBuilder()
80- .include("benchmark.LargeInMemoryQueryBenchmark")
81+ .include("performance.LargeInMemoryQueryBenchmark")
8182 .addProfiler(GCProfiler.class)
8283 .build();
8384@@ -86,7 +87,7 @@ public static void main(String[] args) throws Exception {
86878788private static void runAtStartup() {
888989-LargeInMemoryQueryBenchmark complexQueryBenchmark = new LargeInMemoryQueryBenchmark();
90+LargeInMemoryQueryPerformance complexQueryBenchmark = new LargeInMemoryQueryPerformance();
9091BenchmarkUtils.runInToolingForSomeTimeThenExit(
9192complexQueryBenchmark::setUp,
9293complexQueryBenchmark::runManyQueriesToCompletion,