We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d962e8 commit 70ff0edCopy full SHA for 70ff0ed
benchmark/repeated-fields-benchmark.js
@@ -1,18 +1,13 @@
1
import { graphqlSync } from 'graphql/graphql.js';
2
import { buildSchema } from 'graphql/utilities/buildASTSchema.js';
3
4
-import { bigSchemaSDL } from './fixtures.js';
5
-
6
-const schema = buildSchema(bigSchemaSDL, { assumeValid: true });
7
-const query = `{ ${'__typename '.repeat(2000)}}`;
+const schema = buildSchema('type Query { hello: String! }');
+const source = `{ ${'hello '.repeat(250)}}`;
8
9
export const benchmark = {
10
name: 'Many repeated fields',
11
- count: 50,
+ count: 5,
12
measure() {
13
- graphqlSync({
14
- schema,
15
- source: query,
16
- });
+ graphqlSync({ schema, source });
17
},
18
};
0 commit comments