Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bethel-nz/load-tester
a cli tool for testing api
https://github.com/bethel-nz/load-tester
Last synced: 23 days ago
JSON representation
a cli tool for testing api
- Host: GitHub
- URL: https://github.com/bethel-nz/load-tester
- Owner: Bethel-nz
- Created: 2024-02-07T10:15:57.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-07T10:39:30.000Z (11 months ago)
- Last Synced: 2024-04-17T23:56:10.655Z (8 months ago)
- Language: TypeScript
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# HTTP(S) Load Tester
## How to try it
- clone the repo
- Run npm install.- Open three terminals.
- Start the test server: npm run test-server.
- Run build, it is in watch mode: npm run build.
- Call to the test server: node dist/index.js -u http://localhost:3000/ (this does one request)## Or
- run npm link
- `load-tester -u http://example.com -n 10 -c 2`## Three ways of testing
### Once
```
node dist/index.js -u http://localhost:8080/
```-u is always required. Specifying the URL.
### Linear
```
node dist/index.js -u http://localhost:8080/ -n 100
```This would make 100 requests. One after another. Linearly.
### Concurrent
```
node dist/index.js -u http://localhost:8080/ -n 100 -c 5
```This would make 100 requests. 5 running concurrently at a time.
## All flags
-u -> URL (required)
-n -> how many requests in total (optional)
-c -> How many requests should run concurrently at a time (optional)