How to know Lambda execution time and max memory

Hey all!

I have a very simple question: is there a way to test the execution time and max memory used of a Lambda function using Serverless.

This is helpful to 1) factor costs of the Lambda and 2) seek ways of improving your code.

I have tried, but couldn’t find anything. Thanks!

Look at the CloudWatch Logs. Every time a Lambda executes it will report the execution time and maximum memory used.