Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexfernandez/lambda-loadtester
Load tests for AWS Lambda functions
https://github.com/alexfernandez/lambda-loadtester
Last synced: about 1 month ago
JSON representation
Load tests for AWS Lambda functions
- Host: GitHub
- URL: https://github.com/alexfernandez/lambda-loadtester
- Owner: alexfernandez
- License: mit
- Created: 2020-06-07T21:41:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T07:46:24.000Z (over 4 years ago)
- Last Synced: 2024-11-24T18:39:00.387Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lambda Loadtester
This package runs load tests against Lambda functions.
## Installation
Install using `npm`:
``` bash
npm install lambda-loadtester
```Create a file `aws-config.json` in the project root directory,
which should contain your AWS credentials and target region:``` json
{
"accessKeyId": "AKIA...",
"secretAccessKey": "...",
"region": "eu-west-3"
}
```## Run Test
To run your first test:
``` bash
node bin/run.js --endpoint [name] --body "{}"
```The following options are available:
### `--endpoint [name]`
The function to invoke, mandatory.
### `--number [n]`
Number of total invocations to run, default 1.
### `--concurrency [c]`
Number of parallel invocations on the fly, default 1.
### `--body [body]`
The payload to send to the lambda function.
No default.### `--file [path]`
Path to a file that contains a JSON document to send as the body.
## Invocation
The Lambda function is invoked as many times as the parameter `--number [n]`.
When `--concurrency c` is specified,
there will be at most `c` invocations in flight at the same time.## Results
For every variable in the result it is shown:
total number of values, average and standard deviation.## Acnowledgements
(C) 2020 Alex Fernández.
Licensed under the [MIT license](./LICENSE).