-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun.sh
executable file
·42 lines (34 loc) · 944 Bytes
/
run.sh
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
37
38
39
40
41
42
cd express
nohup node index.js > /dev/null 2>&1 &
echo "Reports for express.js"
sleep 1
wrk http://127.0.0.1:4563 -c 1000 -t12 -d 10
killall node
echo "======================================="
cd ../midori
nohup ruby route.rb >/dev/null 2>&1 &
echo "Reports for em-midori"
sleep 1
wrk http://127.0.0.1:4564 -c 1000 -t12 -d 10
killall ruby
echo "======================================="
cd ../rails/hello
nohup rails s -p 4565 >/dev/null 2>&1 &
echo "Reports for Rails"
sleep 3
wrk http://127.0.0.1:4565 -c 1000 -t12 -d 10
killall ruby
echo "======================================="
cd ../../rails-api/hello
nohup rails s -p 4566 >/dev/null 2>&1 &
echo "Reports for Rails API"
sleep 3
wrk http://127.0.0.1:4566 -c 1000 -t12 -d 10
killall ruby
echo "======================================="
cd ../../sinatra
nohup ruby route.rb >/dev/null 2>&1 &
echo "Reports for Sinatra"
sleep 1
wrk http://127.0.0.1:4567 -c 1000 -t12 -d 10
killall ruby