https://github.com/zahidul-islam/lambda-perf
λperf is a tool for measuring AWS Lambda performance.
https://github.com/zahidul-islam/lambda-perf
aws-lambda cli loadtesting
Last synced: 5 months ago
JSON representation
λperf is a tool for measuring AWS Lambda performance.
- Host: GitHub
- URL: https://github.com/zahidul-islam/lambda-perf
- Owner: Zahidul-Islam
- License: mit
- Created: 2020-01-02T01:46:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:23:48.000Z (about 3 years ago)
- Last Synced: 2024-12-29T04:53:20.533Z (about 1 year ago)
- Topics: aws-lambda, cli, loadtesting
- Language: JavaScript
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# λperf
λperf is a CLI tool for measuring aws lambda performance. It provides a flexible facility for generating various workloads and perform synchronous and asynchronous lambda invocation.
The focus of λperf is make aws lambda load testing easier when the function have no REST endpoint.
## Install
- Clone the repo: `git clone git@github.com:Zahidul-Islam/lambda-perf.git && cd lambda-perf`
- Rename the `.env.template` file: `mv .env.template .env`
- Install pacages: `npm i`
- Symlink the package folder: `npm link`
## Usage
```
$ lperf --help
Usage: lperf [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
list|ls [options] list all lambda functions
create [options] create load tests
delete|del [options] delete lambda alias
exectute|exec [options] execute load tests
Examples:
$ lperf ls -r us-east-x
$ lperf create --arn arn:aws:lambda:us-east-x:xxxxxxxx:function:lambda-function-name -n 5 -p false -d '{ "key": "value" }'
$ lperf delete --arn arn:aws:lambda:us-east-x:xxxxxxxx:function:lambda-function-name
$ lperf exec --arn arn:aws:lambda:us-east-x:xxxxxxxx:function:lambda-function-name -n 5 -p true
```