{"id":21842922,"url":"https://github.com/epsagon/lambda-memory-performance-benchmark","last_synced_at":"2025-04-14T12:04:56.041Z","repository":{"id":37743049,"uuid":"120886712","full_name":"epsagon/lambda-memory-performance-benchmark","owner":"epsagon","description":"Performance and cost benchmark tool for AWS Lambda on memory sizes 📈⏱","archived":false,"fork":false,"pushed_at":"2018-08-25T07:47:21.000Z","size":79,"stargazers_count":63,"open_issues_count":1,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T12:04:51.800Z","etag":null,"topics":["apm","aws-lambda","epsagon","faas","lambda","performance-monitoring","serverless"],"latest_commit_sha":null,"homepage":"http://blog.epsagon.com/how-to-make-lambda-faster-memory-performance-benchmark","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epsagon.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-09T09:39:31.000Z","updated_at":"2023-09-08T17:36:25.000Z","dependencies_parsed_at":"2022-08-08T21:30:55.086Z","dependency_job_id":null,"html_url":"https://github.com/epsagon/lambda-memory-performance-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsagon%2Flambda-memory-performance-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsagon%2Flambda-memory-performance-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsagon%2Flambda-memory-performance-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsagon%2Flambda-memory-performance-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epsagon","download_url":"https://codeload.github.com/epsagon/lambda-memory-performance-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877983,"owners_count":21176243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apm","aws-lambda","epsagon","faas","lambda","performance-monitoring","serverless"],"created_at":"2024-11-27T22:13:45.224Z","updated_at":"2025-04-14T12:04:55.996Z","avatar_url":"https://github.com/epsagon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"AWS Lambda Memory Performance Benchmark\n=======================================\n\nMotivation\n----------\n- Understand how RAM selection affect Lambda's performance (on `Medium \u003chttps://medium.com/epsagon/how-to-make-lambda-faster-memory-performance-benchmark-be6ebc41f0fc\u003e`_).\n- Code a tool that measures Lambda function performance (duration and cost) with several memory sizes.\n\n\nSetup\n-----\n.. code-block:: bash\n\n    git clone git@github.com:epsagon/lambda-memory-performance-benchmark.git\n    cd lambda-memory-performance-benchmark/\n    pip install -r requirements.txt\n    python benchmark.py -f \u003cfunction_name\u003e -r \u003cfunction_region\u003e -p \u003cpayload_filename\u003e\n\n\nUsage\n-----\n\nBasic run:\n\n.. code-block:: bash\n\n    python benchmark.py -f lambda-performance-benchmark -r us-east-1 -p fibonacci-function/payload.json\n\n\nFibonacci's Last Result (February 9th, 2018)\n--------------------------------\n\nChart:\n\n.. image:: https://github.com/epsagon/lambda-memory-performance-benchmark/blob/master/fibonacci-function/performance_chart.png\n\n\nTable:\n\n ============= ================== =================================\n  Memory Size   Duration (in ms)   Price Per 1M Invocations (in $)\n ============= ================== =================================\n  128MB                   376.05                             0.832\n  192MB                   250.24                             0.939\n  256MB                   198.56                             0.834\n  512MB                    98.36                             0.834\n  768MB                    65.48                             1.250\n  1024MB                   45.31                             1.667\n  1536MB                   30.53                             2.501\n  2048MB                   25.21                             3.334\n  2560MB                   25.36                             4.168\n  3008MB                   25.15                             4.897\n ============= ================== =================================\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepsagon%2Flambda-memory-performance-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepsagon%2Flambda-memory-performance-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepsagon%2Flambda-memory-performance-benchmark/lists"}