Why is the Lambda function much faster when using 1536 MB?

I have a question, and I would like an answer.

I have a Lambda function that uses a maximum memory of 31 MB , and the allocated memory is set to 128 MB, it will take 2556.68 ms.

However, if you increase the allocated memory to max 1536 MB, you need to completely execute 621.81 ms, and the used MAX memory will be exactly the same 31 MB.

Why is the Lambda function much faster when the memory used is exactly the same in two cases?

+4
source share
2 answers

, .

AWS Lambda , Amazon EC2 , M3. , 256 , Lambda , 128 .

http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction-function.html

M3 8 Xeon E5-2670 Xeon E5-2670 V2 30 , 1,5 1,5 ร— (8 รท 30) ร— 2,6 โ‰… 1 . 128 1/12.

+4

, Lambda, . , .

AWS Lambda

Q: AWMS Lambda?

AWS Lambda , , . , 256 -, 128 , 512 . 64 128 1,5 .

+1

Source: https://habr.com/ru/post/1689174/


All Articles