diff --git a/benchmarks/mercurius+graphql-compose-jit.js b/benchmarks/mercurius+graphql-compose-jit.js new file mode 100644 index 00000000..5d3e2a03 --- /dev/null +++ b/benchmarks/mercurius+graphql-compose-jit.js @@ -0,0 +1,20 @@ +"use strict"; + +const Fastify = require("fastify"); +const mercurius = require("mercurius"); +const { + createGraphqlComposeSchema, +} = require("../lib/schemas/createGraphqlCompose"); + +const schema = createGraphqlComposeSchema(); + +const app = Fastify(); + +app.register(mercurius, { + schema, + jit: 1, +}); + +app.listen({ + port: 4001, +});