https://github.com/epsagon/lambda-memory-performance-benchmark
Performance and cost benchmark tool for AWS Lambda on memory sizes 📈⏱
https://github.com/epsagon/lambda-memory-performance-benchmark
apm aws-lambda epsagon faas lambda performance-monitoring serverless
Last synced: 9 months ago
JSON representation
Performance and cost benchmark tool for AWS Lambda on memory sizes 📈⏱
- Host: GitHub
- URL: https://github.com/epsagon/lambda-memory-performance-benchmark
- Owner: epsagon
- License: mit
- Created: 2018-02-09T09:39:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-25T07:47:21.000Z (over 7 years ago)
- Last Synced: 2025-04-14T12:04:51.800Z (9 months ago)
- Topics: apm, aws-lambda, epsagon, faas, lambda, performance-monitoring, serverless
- Language: Python
- Homepage: http://blog.epsagon.com/how-to-make-lambda-faster-memory-performance-benchmark
- Size: 77.1 KB
- Stars: 63
- Watchers: 1
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
AWS Lambda Memory Performance Benchmark
=======================================
Motivation
----------
- Understand how RAM selection affect Lambda's performance (on `Medium `_).
- Code a tool that measures Lambda function performance (duration and cost) with several memory sizes.
Setup
-----
.. code-block:: bash
git clone git@github.com:epsagon/lambda-memory-performance-benchmark.git
cd lambda-memory-performance-benchmark/
pip install -r requirements.txt
python benchmark.py -f -r -p
Usage
-----
Basic run:
.. code-block:: bash
python benchmark.py -f lambda-performance-benchmark -r us-east-1 -p fibonacci-function/payload.json
Fibonacci's Last Result (February 9th, 2018)
--------------------------------
Chart:
.. image:: https://github.com/epsagon/lambda-memory-performance-benchmark/blob/master/fibonacci-function/performance_chart.png
Table:
============= ================== =================================
Memory Size Duration (in ms) Price Per 1M Invocations (in $)
============= ================== =================================
128MB 376.05 0.832
192MB 250.24 0.939
256MB 198.56 0.834
512MB 98.36 0.834
768MB 65.48 1.250
1024MB 45.31 1.667
1536MB 30.53 2.501
2048MB 25.21 3.334
2560MB 25.36 4.168
3008MB 25.15 4.897
============= ================== =================================