I did something similar
https://github.com/tim-hub/pambdajs
but I haven't done the comparison on aws lambda yet