# How to know Lambda execution time and max memory

**URL:** <https://forum.serverless.com/t/how-to-know-lambda-execution-time-and-max-memory/5926>\
**Category:** Serverless Framework\
**Tags:** lambda\
**Created:** [September 24, 2018, 9:53pm UTC](https://forum.serverless.com/t/how-to-know-lambda-execution-time-and-max-memory/5926 "2018-09-24T21:53:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raul-medina-nussbaum](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@raul-medina-nussbaum](https://forum.serverless.com/u/raul-medina-nussbaum)\
**Post date:** [September 24, 2018, 9:53pm UTC](https://forum.serverless.com/t/how-to-know-lambda-execution-time-and-max-memory/5926/1 "2018-09-24T21:53:29Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [September 25, 2018, 12:08am UTC](https://forum.serverless.com/t/how-to-know-lambda-execution-time-and-max-memory/5926/2 "2018-09-25T00:08:00Z")

</div>

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