forked from membrane/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtiming.sh
More file actions
14 lines (13 loc) · 835 Bytes
/
timing.sh
File metadata and controls
14 lines (13 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
echo "No throttling applied:"
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:3000
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:3000
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:3000
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:3000
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:3000
echo "With throttling enabled:"
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:2000
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:2000
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:2000
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:2000
curl -o /dev/null -s -w "Total time: %{time_total}\n" http://localhost:2000