We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b97fe0a commit c7d7026Copy full SHA for c7d7026
benchmark/GraphQLSchema-benchmark.js
@@ -0,0 +1,15 @@
1
+import { GraphQLSchema } from 'graphql/type/schema.js';
2
+import { buildClientSchema } from 'graphql/utilities/buildClientSchema.js';
3
+
4
+import { bigSchemaIntrospectionResult } from './fixtures.js';
5
6
+const bigSchema = buildClientSchema(bigSchemaIntrospectionResult.data);
7
8
+export const benchmark = {
9
+ name: 'Recreate a GraphQLSchema',
10
+ count: 40,
11
+ measure() {
12
+ // eslint-disable-next-line no-new
13
+ new GraphQLSchema(bigSchema.toConfig());
14
+ },
15
+};
0 commit comments