This project offers a quick solution to load test an API in TypeScript language.
It is based on K6 which is a feature rich free tool for load testing.
Download and install K6 based on your platform.
Install Node.js dependencies for typings information:
npm i -g pnpm
pnpm i
Modify source/main.ts
to your liking, if you would like to use environment variables copy .env.schema
as .env
.
Then run the built-in script:
pnpm test
Results will be output in the console as well as in result.csv
file.