Lambda@Edge Performance Node.js 20 vs. Python 3.11

0

I'm going to write a Lambda@Edge function and I'm deciding between the two latest Runtimes of Node.js 20 and Python 3.11. The code will do simple string manipulations to the Path of the request to CloudFront. I'm proficient in both languages. So I'd like to decide on a Runtime language based on performance. Are there any public performance tests to compare the two Runtimes?

1 Answer
0

Hello,

On the question of performance the best way is always do your own tests, as stated on our Operator Guidance on runtime performance. I highly recommend you take a look at AWS Lambda Power Tuning, so you can test for performance and pricing using a Step Function running your code. I think you can fo a lot of improvement in the runtime you are using just tuning the performance,

Bersides that, while not from AWS, you can take a look for the numbers in this external source, AWS Lambda Performance Tuning & Best Practices (2023) .

Also, don't underestimate Developer Experience. If you, our the team developing on a language is superior to another, sometimes some seconds don't make such a different in the performance per se but will affect a lot on how your workflows for upgrading and improvement over time will take place.

profile picture
answered 3 months ago
profile picture
EXPERT
reviewed 25 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions