This repository has been archived by the owner on Feb 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scenarios for load-testing Sonic (#282)
- Loading branch information
1 parent
6583bd2
commit a9a2797
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |