Skip to content

Commit

Permalink
Increase GraphQL benchmark stability (#5284)
Browse files Browse the repository at this point in the history
  • Loading branch information
watson authored Feb 18, 2025
1 parent 0e84146 commit 052a833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmark/sirun/plugin-graphql/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down
4 changes: 2 additions & 2 deletions benchmark/sirun/plugin-graphql/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({}))
}

Expand All @@ -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({}))
}

Expand Down

0 comments on commit 052a833

Please sign in to comment.