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 own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
Apache License 2.0
5.41k stars 373 forks source link

Sort durations numerically #152

Closed grzegorzpapkala closed 2 years ago

grzegorzpapkala commented 2 years ago

By default sort() is ordering items alphabetically. This was causing some unexpected results when comparing when some cold start durations where ignored for one configuration and preserved for another.

alexcasalboni commented 2 years ago

Thanks for contributing, @grzegorzpapkala 🙏

I totally missed this one!

I'll merge the PR now and publish a new version on SAR in the next few days.