forked from tailcallhq/graphql-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_analyze_script.sh
More file actions
executable file
·36 lines (28 loc) · 1.02 KB
/
Copy pathrun_analyze_script.sh
File metadata and controls
executable file
·36 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Update and install gnuplot
sudo apt-get update && sudo apt-get install -y gnuplot
# Remove existing results file
rm -f results.md
services=("apollo" "caliban" "netflixdgs" "gqlgen" "tailcall" "async_graphql" "hasura" "graphql_jit")
# Loop through each benchmark (1, 2, 3)
for bench in 1 2 3; do
echo "Processing files for bench${bench}:"
# Construct the command for each benchmark
cmd="bash analyze.sh"
# Loop through each service
for service in "${services[@]}"; do
# Convert service name to match file naming convention
case $service in
"apollo") file_service="apollo_server" ;;
"netflixdgs") file_service="netflix_dgs" ;;
*) file_service=$service ;;
esac
# Add files for current service to the command
for run in 1 2 3; do
cmd+=" bench${bench}_result${run}_graphql_${file_service}_run.sh.txt"
done
done
# Execute the command
echo "Executing: $cmd"
eval $cmd
done