File tree Expand file tree Collapse file tree 6 files changed +259
-43
lines changed Expand file tree Collapse file tree 6 files changed +259
-43
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,46 @@ config:
1717 processor : ' ../src/processors/multi-endpoints.ts'
1818
1919scenarios :
20- - name : ' Execute JS Stress Test'
20+ - name : ' Execute JS Stress Test - Sign '
2121 weight : 100
22+ variables :
23+ # Access in the script via context.scenario.variables.variant
24+ variant : ' sign'
25+ flow :
26+ - function : ' runExecuteJSTest'
27+ - think : 0.1
28+ - name : ' Execute JS Stress Test - Broadcast and Collect'
29+ weight : 0
30+ variables :
31+ variant : ' broadcastAndCollect'
32+ flow :
33+ - function : ' runExecuteJSTest'
34+ - think : 0.1
35+ - name : ' Execute JS Stress Test - Check Conditions with Auth Sig'
36+ weight : 0
37+ variables :
38+ variant : ' checkConditionsWithoutAuthSig'
39+ flow :
40+ - function : ' runExecuteJSTest'
41+ - think : 0.1
42+ - name : ' Execute JS Stress Test - Sign Child Lit Action'
43+ weight : 0
44+ variables :
45+ variant : ' signChildLitAction'
46+ flow :
47+ - function : ' runExecuteJSTest'
48+ - think : 0.1
49+ - name : ' Execute JS Stress Test - Decrypt to Single Node without Auth Sig'
50+ weight : 0
51+ variables :
52+ variant : ' decryptToSingleNode'
53+ flow :
54+ - function : ' runExecuteJSTest'
55+ - think : 0.1
56+ - name : ' Execute JS Stress Test - Run Once'
57+ weight : 0
58+ variables :
59+ variant : ' runOnce'
2260 flow :
2361 - function : ' runExecuteJSTest'
2462 - think : 0.1
Original file line number Diff line number Diff line change @@ -4,17 +4,15 @@ config:
44 # Over 60s, ramp up to creating 50 vusers per second
55 - duration : 60
66 arrivalRate : 5
7- # rampTo: 50
8- rampTo : 10
7+ rampTo : 150
98 name : ' Ramp Up'
109 # Over 300s, create 50 vusers per second
1110 - duration : 300
12- # arrivalRate: 50
13- arrivalRate : 10
11+ arrivalRate : 150
1412 name : ' Sustained Sign Session Key'
1513 # Over 60s, ramp down to creating 5 vusers per second
1614 - duration : 60
17- arrivalRate : 5
15+ arrivalRate : 20
1816 name : ' Ramp Down'
1917 processor : ' ../src/processors/multi-endpoints.ts'
2018
Original file line number Diff line number Diff line change 2222 "executor" : " nx:run-commands" ,
2323 "options" : {
2424 "cwd" : " {projectRoot}" ,
25- "command" : " dotenvx run --env-file=../../.env -- bash -lc 'if [ -n \" $ARTILLERY_KEY\" ]; then artillery run --record --key \" $ARTILLERY_KEY\" configs/pkp-sign.yml; else artillery run configs/pkp-sign.yml; fi' "
25+ "command" : " artillery run configs/pkp-sign.yml $( [ -n \" $ARTILLERY_KEY\" ] && echo \" --record --key $ARTILLERY_KEY\" ) "
2626 }
2727 },
2828 "run:encrypt-decrypt" : {
2929 "executor" : " nx:run-commands" ,
3030 "options" : {
3131 "cwd" : " {projectRoot}" ,
32- "command" : " dotenvx run --env-file=../../.env -- bash -lc 'if [ -n \" $ARTILLERY_KEY\" ]; then artillery run --record --key \" $ARTILLERY_KEY\" configs/encrypt-decrypt.yml; else artillery run configs/encrypt-decrypt.yml; fi' "
32+ "command" : " artillery run configs/encrypt-decrypt.yml $( [ -n \" $ARTILLERY_KEY\" ] && echo \" --record --key $ARTILLERY_KEY\" ) "
3333 }
3434 },
3535 "run:execute" : {
3636 "executor" : " nx:run-commands" ,
3737 "options" : {
3838 "cwd" : " {projectRoot}" ,
39- "command" : " dotenvx run --env-file=../../.env -- bash -lc 'if [ -n \" $ARTILLERY_KEY\" ]; then artillery run --record --key \" $ARTILLERY_KEY\" configs/execute.yml; else artillery run configs/execute.yml; fi' "
39+ "command" : " artillery run configs/execute.yml $( [ -n \" $ARTILLERY_KEY\" ] && echo \" --record --key $ARTILLERY_KEY\" ) "
4040 }
4141 },
4242 "run:mix" : {
4343 "executor" : " nx:run-commands" ,
4444 "options" : {
4545 "cwd" : " {projectRoot}" ,
46- "command" : " dotenvx run --env-file=../../.env -- bash -lc 'if [ -n \" $ARTILLERY_KEY\" ]; then artillery run --record --key \" $ARTILLERY_KEY\" configs/mix.yml; else artillery run configs/mix.yml; fi' "
46+ "command" : " artillery run configs/mix.yml $( [ -n \" $ARTILLERY_KEY\" ] && echo \" --record --key $ARTILLERY_KEY\" ) "
4747 }
4848 },
4949 "run:sign-session-key" : {
5050 "executor" : " nx:run-commands" ,
5151 "options" : {
5252 "cwd" : " {projectRoot}" ,
53- "command" : " dotenvx run --env-file=../../.env -- bash -lc 'if [ -n \" $ARTILLERY_KEY\" ]; then artillery run --record --key \" $ARTILLERY_KEY\" configs/sign-session-key.yml; else artillery run configs/sign-session-key.yml; fi' "
53+ "command" : " artillery run configs/sign-session-key.yml $( [ -n \" $ARTILLERY_KEY\" ] && echo \" --record --key $ARTILLERY_KEY\" ) "
5454 }
5555 }
5656 },
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const _network = process.env['NETWORK'];
1717
1818// CONFIGURATIONS
1919const REJECT_BALANCE_THRESHOLD = 0 ;
20- const LEDGER_MINIMUM_BALANCE = 20000 ;
20+ const LEDGER_MINIMUM_BALANCE = 10000 ;
2121
2222( async ( ) => {
2323 // -- Start
You can’t perform that action at this time.
0 commit comments