-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <[email protected]> Signed-off-by: Hyperledger Bot <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Hyperledger Bot <[email protected]>
- Loading branch information
1 parent
9050094
commit 1712062
Showing
4 changed files
with
40 additions
and
20 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
22 changes: 11 additions & 11 deletions
22
tests/performance-tests/agent-performance-tests-k6/src/scenarios/default.ts
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 |
---|---|---|
@@ -1,30 +1,30 @@ | ||
/*global __ENV*/ | ||
/* global __ENV */ | ||
|
||
import { Options } from "k6/options"; | ||
import { Options } from 'k6/options' | ||
|
||
export const defaultOptions: Options = { | ||
setupTimeout: '120s', | ||
scenarios: { | ||
smoke: { | ||
// a simple test to ensure performance tests work and requests don't fail | ||
executor: "shared-iterations", | ||
executor: 'shared-iterations', | ||
vus: 1, | ||
iterations: 1, | ||
tags: { scenario_label: __ENV.SCENARIO_LABEL || "defaultScenarioLabel" }, // add label for filtering in observability platform | ||
}, | ||
tags: { scenario_label: __ENV.SCENARIO_LABEL || 'defaultScenarioLabel' } // add label for filtering in observability platform | ||
} | ||
}, | ||
thresholds: { | ||
http_req_failed: [ | ||
// fail if any requests fail during smoke test | ||
{ | ||
threshold: "rate==0", | ||
abortOnFail: true, | ||
}, | ||
threshold: 'rate==0', | ||
abortOnFail: true | ||
} | ||
], | ||
http_req_duration: [ | ||
{ threshold: "p(95)<5000", abortOnFail: false }, // 95% of requests should complete within 5 seconds, but don't fail tests | ||
// TODO: this threshold is too high, it should be adjusted to the actual performance requirements to lower value | ||
{ threshold: 'p(95)<11000', abortOnFail: false } // 95% of requests should complete within 5 seconds, but don't fail tests | ||
], | ||
checks: [{ threshold: "rate==1", abortOnFail: true }], // fail if any checks fail (the checks are defined in test code which is executed) | ||
|
||
checks: [{ threshold: 'rate==1', abortOnFail: true }] // fail if any checks fail (the checks are defined in test code which is executed) | ||
} | ||
} |
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