-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jlorias
committed
Sep 10, 2024
1 parent
c40a98a
commit ef6ae94
Showing
6 changed files
with
113 additions
and
6 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
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
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,36 @@ | ||
config: | ||
target: "http://localhost:3000" | ||
plugins: | ||
expect: {} | ||
ensure: | ||
p95: 200 # 95% < 200ms; para ser satisfactorio. | ||
maxErrorRate: 2 # 2% de error permitido (timeouts, server error, bad request, etc.) | ||
|
||
phases: | ||
- duration: 5 | ||
arrivalRate: 1 # 1 request/s | ||
name: "Warming up" | ||
|
||
- duration: 10 | ||
arrivalRate: 2 # 2 request/s | ||
rampTo: 100 # hasta 100 request/s en 7segundos | ||
name: "Ramping up" | ||
|
||
- duration: 15 | ||
arrivalRate: 10 # 10 request/s | ||
name: "Sustained load" | ||
|
||
scenarios: | ||
- name: "Healthcheck" | ||
flow: | ||
- get: | ||
url: "/healthcheck" | ||
expect: | ||
- statusCode: 200 | ||
|
||
- name: "Delay" | ||
flow: | ||
- get: | ||
url: "/delay?seconds=0.1" | ||
expect: | ||
- statusCode: 200 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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