Large in memory query benchmark - moving class to performance · graphql-java/graphql-java@f1730cc

1-

package benchmark;

1+

package performance;

223+

import benchmark.BenchmarkUtils;

34

import graphql.GraphQL;

45

import graphql.schema.GraphQLSchema;

56

import 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 {

44454546

GraphQL graphQL;

4647

volatile boolean shutDown;

@@ -77,7 +78,7 @@ public static void main(String[] args) throws Exception {

7778

runAtStartup();

78797980

Options 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 {

86878788

private static void runAtStartup() {

888989-

LargeInMemoryQueryBenchmark complexQueryBenchmark = new LargeInMemoryQueryBenchmark();

90+

LargeInMemoryQueryPerformance complexQueryBenchmark = new LargeInMemoryQueryPerformance();

9091

BenchmarkUtils.runInToolingForSomeTimeThenExit(

9192

complexQueryBenchmark::setUp,

9293

complexQueryBenchmark::runManyQueriesToCompletion,