alexcasalboni/aws-lambda-power-tuning

AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your...

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 3 minutes ago
Added to GitGenius on September 11th, 2026
Created on March 27th, 2017
Open Issues & Pull Requests: 12 (+0)
GitHub issues: Enabled
Number of forks: 415
Total Stargazers: 6,060 (+0)
Total Subscribers: 77 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

AWS Lambda Power Tuning is a state machine tool that optimizes Lambda function configurations for cost and performance by testing multiple memory settings and analyzing execution results.

The tool addresses the challenge of finding the optimal memory allocation for Lambda functions, which directly affects both execution cost and speed. It works by accepting a Lambda function ARN as input, then invoking that function across a range of memory configurations you specify (from 128MB to 10GB). The state machine, built on AWS Step Functions, collects execution logs from each invocation and generates visualizations showing the relationship between power configuration and both cost and execution time. This data-driven approach reveals that higher memory allocations sometimes reduce overall cost despite higher per-invocation pricing, particularly for CPU-intensive workloads where faster execution time outweighs the increased memory cost.

The tool is language-agnostic and runs entirely within your AWS account, making it suitable for optimizing any existing Lambda functions. It supports three optimization strategies: cost minimization, speed maximization, and balanced approaches. The state machine can execute in parallel across multiple power configurations, completing analysis in seconds rather than hours. Deployment is straightforward through multiple infrastructure-as-code options including AWS SAM CLI, and the state machine workflow is visually inspectable in the AWS management console. This approach is most valuable for functions where the optimal power configuration is not obvious, particularly CPU-intensive workloads or functions with variable performance characteristics across different memory tiers.

The project maintains active engagement with deployment flexibility, offering five distinct infrastructure-as-code deployment methods to accommodate different team preferences and workflows. Development activity shows consistent attention to cross-region invocation support and parallel execution capabilities, enabling users to gather comprehensive tuning data efficiently. The codebase demonstrates language-agnostic design principles, allowing the tool to optimize any Lambda function regardless of its implementation language.