-
Notifications
You must be signed in to change notification settings - Fork 15
/
bench.sh
executable file
·40 lines (35 loc) · 1.47 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
34
35
36
37
38
39
40
#! /bin/bash
echo '=============================='
echo '= Normal Mode | Without Auth ='
echo '=============================='
npx concurrently --raw -k \
"node ./bench/normal-without-auth.js" \
"npx wait-on tcp:3000 && node ./bench/normal-bench.js"
echo '==========================='
echo '= Normal Mode | With Auth ='
echo '==========================='
npx concurrently --raw -k \
"node ./bench/normal-with-auth.js" \
"npx wait-on tcp:3000 && node ./bench/normal-bench.js"
echo '============================================'
echo '= Normal Mode | With Introspection Filters ='
echo '============================================'
npx concurrently --raw -k \
"node ./bench/normal-with-introspection-filters.js" \
"npx wait-on tcp:3000 && node ./bench/normal-bench-introspection.js"
echo '==============================='
echo '= Gateway Mode | Without Auth ='
echo '==============================='
npx concurrently --raw -k \
"node ./bench/gateway-service-1.js" \
"node ./bench/gateway-service-2.js" \
"npx wait-on tcp:3001 tcp:3002 && node ./bench/gateway-without-auth.js" \
"npx wait-on tcp:3000 && node ./bench/gateway-bench.js"
echo '============================'
echo '= Gateway Mode | With Auth ='
echo '============================'
npx concurrently --raw -k \
"node ./bench/gateway-service-1.js" \
"node ./bench/gateway-service-2.js" \
"npx wait-on tcp:3001 tcp:3002 && node ./bench/gateway-with-auth.js" \
"npx wait-on tcp:3000 && node ./bench/gateway-bench.js"