Skip to content

Commit 70ff0ed

Browse files
committed
Reduce benchmark footprint
1 parent 8d962e8 commit 70ff0ed

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
import { graphqlSync } from 'graphql/graphql.js';
22
import { buildSchema } from 'graphql/utilities/buildASTSchema.js';
33

4-
import { bigSchemaSDL } from './fixtures.js';
5-
6-
const schema = buildSchema(bigSchemaSDL, { assumeValid: true });
7-
const query = `{ ${'__typename '.repeat(2000)}}`;
4+
const schema = buildSchema('type Query { hello: String! }');
5+
const source = `{ ${'hello '.repeat(250)}}`;
86

97
export const benchmark = {
108
name: 'Many repeated fields',
11-
count: 50,
9+
count: 5,
1210
measure() {
13-
graphqlSync({
14-
schema,
15-
source: query,
16-
});
11+
graphqlSync({ schema, source });
1712
},
1813
};

0 commit comments

Comments
 (0)