@@ -24,7 +24,7 @@ function runBenchmark() {
2424 local serviceScript=" graphql/${service} /run.sh"
2525 local benchmarks=(1 2)
2626
27- if [[ " $service " == * " hasura" * ]]; then
27+ if [[ " $service " == " hasura" ]]; then
2828 bash " $serviceScript " # Run synchronously without background process
2929 else
3030 bash " $serviceScript " & # Run in daemon mode
@@ -44,15 +44,15 @@ function runBenchmark() {
4444
4545 local resultFiles=(" result1_${sanitizedServiceScriptName} .txt" " result2_${sanitizedServiceScriptName} .txt" " result3_${sanitizedServiceScriptName} .txt" )
4646
47- bash " test_query${bench} .sh" " $graphqlEndpoint "
47+ bash " test_query${bench} .sh" " $graphqlEndpoint "
4848
49- # Warmup run
50- bash " $benchmarkScript " " $graphqlEndpoint " > /dev/null
51- sleep 1 # Give some time for apps to finish in-flight requests from warmup
52- bash " $benchmarkScript " " $graphqlEndpoint " > /dev/null
53- sleep 1
54- bash " $benchmarkScript " " $graphqlEndpoint " > /dev/null
55- sleep 1
49+ # Warmup run
50+ bash " $benchmarkScript " " $graphqlEndpoint " > /dev/null
51+ sleep 1 # Give some time for apps to finish in-flight requests from warmup
52+ bash " $benchmarkScript " " $graphqlEndpoint " > /dev/null
53+ sleep 1
54+ bash " $benchmarkScript " " $graphqlEndpoint " > /dev/null
55+ sleep 1
5656
5757 # 3 benchmark runs
5858 for resultFile in " ${resultFiles[@]} " ; do
@@ -69,7 +69,7 @@ function runBenchmark() {
6969
7070rm " results.md"
7171
72- for service in " apollo_server" " caliban" " netflix_dgs" " gqlgen" " tailcall" " async_graphql" ; do
72+ for service in " apollo_server" " caliban" " netflix_dgs" " gqlgen" " tailcall" " async_graphql" " hasura " ; do
7373 runBenchmark " $service "
7474 if [ " $service " == " apollo_server" ]; then
7575 cd graphql/apollo_server/
0 commit comments