File tree 2 files changed +3
-3
lines changed
benchmark/sirun/plugin-graphql
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
"run" : " node index.js" ,
4
4
"run_with_affinity" : " bash -c \" taskset -c $CPU_AFFINITY node index.js\" " ,
5
5
"cachegrind" : false ,
6
- "iterations" : 2 ,
6
+ "iterations" : 30 ,
7
7
"instructions" : true ,
8
8
"variants" : {
9
9
"control" : {},
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ const Human = new graphql.GraphQLObjectType({
94
94
async resolve ( obj , args ) {
95
95
const promises = [ ]
96
96
97
- for ( let i = 0 ; i < 100 ; i ++ ) {
97
+ for ( let i = 0 ; i < 20 ; i ++ ) {
98
98
promises . push ( await Promise . resolve ( { } ) )
99
99
}
100
100
@@ -115,7 +115,7 @@ const schema = new graphql.GraphQLSchema({
115
115
async resolve ( obj , args ) {
116
116
const promises = [ ]
117
117
118
- for ( let i = 0 ; i < 100 ; i ++ ) {
118
+ for ( let i = 0 ; i < 20 ; i ++ ) {
119
119
promises . push ( await Promise . resolve ( { } ) )
120
120
}
121
121
You can’t perform that action at this time.
0 commit comments