diff --git a/benchmark/sirun/plugin-graphql/meta.json b/benchmark/sirun/plugin-graphql/meta.json index 0b5003978dc..ecc7c6cee61 100644 --- a/benchmark/sirun/plugin-graphql/meta.json +++ b/benchmark/sirun/plugin-graphql/meta.json @@ -3,7 +3,7 @@ "run": "node index.js", "run_with_affinity": "bash -c \"taskset -c $CPU_AFFINITY node index.js\"", "cachegrind": false, - "iterations": 2, + "iterations": 30, "instructions": true, "variants": { "control": {}, diff --git a/benchmark/sirun/plugin-graphql/schema.js b/benchmark/sirun/plugin-graphql/schema.js index d7da47739b9..ea748c5bb79 100644 --- a/benchmark/sirun/plugin-graphql/schema.js +++ b/benchmark/sirun/plugin-graphql/schema.js @@ -94,7 +94,7 @@ const Human = new graphql.GraphQLObjectType({ async resolve (obj, args) { const promises = [] - for (let i = 0; i < 100; i++) { + for (let i = 0; i < 20; i++) { promises.push(await Promise.resolve({})) } @@ -115,7 +115,7 @@ const schema = new graphql.GraphQLSchema({ async resolve (obj, args) { const promises = [] - for (let i = 0; i < 100; i++) { + for (let i = 0; i < 20; i++) { promises.push(await Promise.resolve({})) }