Load testing added via npm run loadtest

- npm scripts added
- loadtesting "--weight" option for quick configs
- Use chalk in loadtest for logging

TODO: Need better way to pass in websiteId
This commit is contained in:
Adam Coard 2020-10-02 00:05:10 +00:00
parent 0acda0a468
commit bbc7e25ee8
2 changed files with 145 additions and 1 deletions

View file

@ -31,7 +31,10 @@
"merge-lang": "node scripts/merge-lang.js",
"format-lang": "node scripts/format-lang.js",
"compile-lang": "formatjs compile-folder --ast build lang-compiled",
"check-lang": "node scripts/check-lang.js"
"check-lang": "node scripts/check-lang.js",
"loadtest": "node scripts/loadtest.js",
"loadtest:medium": "node scripts/loadtest.js --weight=medium",
"loadtest:heavy": "node scripts/loadtest.js --weight=heavy --verbose"
},
"lint-staged": {
"**/*.js": [
@ -107,6 +110,7 @@
"extract-react-intl-messages": "^4.1.1",
"husky": "^4.3.0",
"lint-staged": "^10.4.0",
"loadtest": "5.1.0",
"npm-run-all": "^4.1.5",
"postcss-flexbugs-fixes": "^4.2.1",
"postcss-import": "^12.0.1",