Skip to content
This repository has been archived by the owner on Feb 20, 2025. It is now read-only.

Commit

Permalink
Add scenarios for load-testing Sonic (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertJordan authored Nov 8, 2024
1 parent 6583bd2 commit a9a2797
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scenarios/load_tests/slope.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This scenario runs a 2-minute load test with a gradual increase in load.
name: Slope Load Test
duration: 120

# The number of static validators present from begin to end.
num_validators: 4

applications:
- name: load
type: uniswap
users: 100
start: 20
end: 110
rate:
slope:
increment: 5
34 changes: 34 additions & 0 deletions scenarios/load_tests/steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This scenario runs a 2-minute load test with three different
# phases of load - a moderate load, a low load, and a high load.
name: Stepped Load Test
duration: 120

# The number of static validators present from begin to end.
num_validators: 4

# Run three different applications consecutively producing different load
applications:

- name: load-M
type: counter
users: 100
start: 20
end: 50
rate:
constant: 20

- name: load-S
type: erc20
users: 100
start: 50
end: 80
rate:
constant: 1

- name: load-L
type: uniswap
users: 100
start: 80
end: 110
rate:
constant: 100

0 comments on commit a9a2797

Please sign in to comment.