Skip to content

Commit

Permalink
Add benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Dec 11, 2019
1 parent 38f24b4 commit 155c17c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions benchmarks/large/results.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Core i7 2700K @ 3.5GHz
Windows 10 x64
10 000 array items | 100 iterations

-----
Node.js v13.3

GraphQL-js async:
- 19.765s

GraphQL-js sync:
- 10.031s

TypeGraphQL async field resolvers:
- 30.749s

TypeGraphQL sync field resolvers:
- 16.441s

TypeGraphQL implicit fields:
- 13.784s

TypeGraphQL simple resolvers:
- 11.814s
2 changes: 1 addition & 1 deletion benchmarks/large/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GraphQLSchema, execute } from "graphql";
import { gql } from "apollo-server";

const BENCHMARK_ITERATIONS = 100;
export const ARRAY_ITEMS = 5000;
export const ARRAY_ITEMS = 10000;

export async function runBenchmark(schema: GraphQLSchema) {
const multipleNestedObjectsQuery = gql`
Expand Down

0 comments on commit 155c17c

Please sign in to comment.