CPU allocated to Lambda functions scales with the memory allowance [1] and you can use power tuning [2] to find the optimal values.
[1] https://docs.aws.amazon.com/lambda/latest/dg/configuration-f...
[2] https://serverlessrepo.aws.amazon.com/applications/arn:aws:s...