@@ -24,7 +24,7 @@ function runBenchmark() {
24
24
local serviceScript=" graphql/${service} /run.sh"
25
25
local benchmarks=(1 2)
26
26
27
- if [[ " $service " == * " hasura" * ]]; then
27
+ if [[ " $service " == " hasura" ]]; then
28
28
bash " $serviceScript " # Run synchronously without background process
29
29
else
30
30
bash " $serviceScript " & # Run in daemon mode
@@ -44,15 +44,15 @@ function runBenchmark() {
44
44
45
45
local resultFiles=(" result1_${sanitizedServiceScriptName} .txt" " result2_${sanitizedServiceScriptName} .txt" " result3_${sanitizedServiceScriptName} .txt" )
46
46
47
- bash " test_query${bench} .sh" " $graphqlEndpoint "
47
+ bash " test_query${bench} .sh" " $graphqlEndpoint "
48
48
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
56
56
57
57
# 3 benchmark runs
58
58
for resultFile in " ${resultFiles[@]} " ; do
@@ -69,7 +69,7 @@ function runBenchmark() {
69
69
70
70
rm " results.md"
71
71
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
73
73
runBenchmark " $service "
74
74
if [ " $service " == " apollo_server" ]; then
75
75
cd graphql/apollo_server/
0 commit comments