import { GraphQLSchema } from 'graphql/type/schema.js';
import { buildClientSchema } from 'graphql/utilities/buildClientSchema.js';

import { bigSchemaIntrospectionResult } from './fixtures.js';

const bigSchema = buildClientSchema(bigSchemaIntrospectionResult.data);

export const benchmark = {
  name: 'Recreate a GraphQLSchema',
  measure: () => new GraphQLSchema(bigSchema.toConfig()),
};