-
Notifications
You must be signed in to change notification settings - Fork 6
/
bench.sh
executable file
·33 lines (29 loc) · 1.27 KB
/
bench.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
#! /bin/bash
echo '===================================='
echo '= Normal Mode | Without Validation ='
echo '===================================='
npx concurrently --raw -k \
"node ./bench/normal-without-validation.js" \
"npx wait-on tcp:3000 && node ./bench/normal-bench.js"
echo '================================='
echo '= Normal Mode | With Validation ='
echo '================================='
npx concurrently --raw -k \
"node ./bench/normal-with-validation.js" \
"npx wait-on tcp:3000 && node ./bench/normal-bench.js"
echo '====================================='
echo '= Gateway Mode | Without Validation ='
echo '====================================='
npx concurrently --raw -k \
"node ./bench/gateway-user-service.js" \
"node ./bench/gateway-post-service.js" \
"npx wait-on tcp:3001 tcp:3002 && node ./bench/gateway-without-validation.js" \
"npx wait-on tcp:3000 && node ./bench/gateway-bench.js"
echo '=================================='
echo '= Gateway Mode | With Validation ='
echo '=================================='
npx concurrently --raw -k \
"node ./bench/gateway-user-service.js" \
"node ./bench/gateway-post-service.js" \
"npx wait-on tcp:3001 tcp:3002 && node ./bench/gateway-with-validation.js" \
"npx wait-on tcp:3000 && node ./bench/gateway-bench.js"