Skip to content

Commit 052a833

Browse files
authored
Increase GraphQL benchmark stability (#5284)
1 parent 0e84146 commit 052a833

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

benchmark/sirun/plugin-graphql/meta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"run": "node index.js",
44
"run_with_affinity": "bash -c \"taskset -c $CPU_AFFINITY node index.js\"",
55
"cachegrind": false,
6-
"iterations": 2,
6+
"iterations": 30,
77
"instructions": true,
88
"variants": {
99
"control": {},

benchmark/sirun/plugin-graphql/schema.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const Human = new graphql.GraphQLObjectType({
9494
async resolve (obj, args) {
9595
const promises = []
9696

97-
for (let i = 0; i < 100; i++) {
97+
for (let i = 0; i < 20; i++) {
9898
promises.push(await Promise.resolve({}))
9999
}
100100

@@ -115,7 +115,7 @@ const schema = new graphql.GraphQLSchema({
115115
async resolve (obj, args) {
116116
const promises = []
117117

118-
for (let i = 0; i < 100; i++) {
118+
for (let i = 0; i < 20; i++) {
119119
promises.push(await Promise.resolve({}))
120120
}
121121

0 commit comments

Comments
 (0)