Skip to content

Commit

Permalink
Benchmark: always assume schema is valid (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Sep 6, 2018
1 parent 84d05fc commit 6963fc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utilities/__tests__/buildASTSchema-benchmark.js
Expand Up @@ -14,5 +14,5 @@ const schemaAST = parse(bigSchemaSDL);

export const name = 'Build Schema from AST';
export function measure() {
buildASTSchema(schemaAST);
buildASTSchema(schemaAST, { assumeValid: true });
}
2 changes: 1 addition & 1 deletion src/utilities/__tests__/buildClientSchema-benchmark.js
Expand Up @@ -11,5 +11,5 @@ import { buildClientSchema } from '../buildClientSchema';

export const name = 'Build Schema from Introspection';
export function measure() {
buildClientSchema(bigSchemaIntrospectionResult.data);
buildClientSchema(bigSchemaIntrospectionResult.data, { assumeValid: true });
}

0 comments on commit 6963fc8

Please sign in to comment.