ci: add loadtest workflow & script #6129
Draft
+330
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of this PR is to add a new github workflow and script which will run the benchmarks for express.
The new script is based from your initial work here https://github.com/UlisesGascon/express-performance-comparator
I reused the
benchmarks/middleware.js
with minimal changes to not alter the original work.I have created a test repo if you would like to test the workflow here => https://github.com/tchapacan/express-test-wf/
This PR seems a little big to review at once and lack of tests and docs (if necessary), I can split it in smaller PRs if you prefer, ex:
load-test-workflow.js
scriptbenchmarks/middleware.js
scriptload-test.yml
workflowLMK if this proposition suits you. I understand that CI might need further discussion between you, specifically if you have already planned/discussed something. Maybe this deserve it's own repo (if more feature, docs, tests are needed then) ?
Furthermore we have to keep in mind that benchmark will run on the runner and the result will strictly depend on it.
Anyway, I'm 100% open to discussion/changes about that, hope it's helping you a little, cheers!