-
-
Notifications
You must be signed in to change notification settings - Fork 57
Load Testing
John Darragh edited this page Feb 6, 2021
·
1 revision
It is easy to run a simple load test against the Web API server which makes the same Web API request repeatedly in rapid succession to evaluate the response time and environment robustness by simulating traffic much greater than would likely be encountered in the production envionment.
Install the loadtest module globally on your machine:
npm install -g loadtest
A few scripts have been added to the package.json file in the /server folder to run specific tests in three different environments:
-
npm run loadtest:localruns a load test against your local dev server (and the development database) - you will need to start the node server first withnpm startfrom the project root directory. -
npm run loadtest:devruns a load test against the development environment and development server. -
npm run loadtest:prodruns a load test agains the production environment
You may want to adjust the load testing parameters by modifying some of the options as documented here.