Serverless Function Calibrator
This Serverless plugin helps you to select the best memorySize
value
for your AWS Lambda function. It does so by empirically finding which value gives the fastest
execution, and which one gives the cheapest.
Install
Note: Serverless v0.5.0 or higher is required.
- Install via npm in the root of your Serverless Project:
npm install serverless-function-calibrator --save
- In the
plugins
array in your s-project.json
add serverless-function-calibrator
- All done!
Usage
Important: This plugin is currently in beta, so it is highly recommended to commit changes made to
your project before running, in case a bug would cause your s-function.json
file to be corrupted.
serverless function calibrate <function name> [-s <stage> -r <region>]
Contributing
Contributions are welcome. Please configure your IDE to use the project's ESLint settings.
License
MIT