PythonVsRustAWSLambda
Testing the runtime difference between Python and Rust for AWS Lambda.
Install / Use
/learn @danielbeach/PythonVsRustAWSLambdaREADME
PythonVsRustAWSLambda
Testing the runtime difference between Python and Rust for AWS Lambda.
This repo contains two example Lambdas:
pythonLambda/— Python implementationrustLambda/— Rust implementation
The Lambdas are intended to be triggered by an S3 event. Note that an S3-triggered invocation can contain multiple records, so the handler typically loops over the incoming event records.
See the full write-up: https://www.confessionsofadataguy.com/aws-lambdas-python-vs-rust-performance-and-cost-savings/
What this benchmark does (high level)
At a high level, both Lambdas:
- Receive an S3 event
- For each record in the event, read the referenced object
- Perform the same workload in Python vs Rust
- Log timing information so the runtimes can be compared
(For exact details, see the implementation in each language folder.)
Quick start: Rust Lambda build (cargo-lambda)
The Rust Lambda uses cargo-lambda to build and package the bootstrap binary required for deployment.
Install cargo-lambda (see the cargo-lambda docs for platform-specific instructions), then build the deployment zip:
cargo lambda build --release --output-format zip
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
