For one of my lambdas I compared the difference in execution time when using lambduh-gulp or browserify. I found that the lambda that used lambduh-gulp for bundling was always faster (40% faster). Has anybody else experienced this? What could be the reason? I expected the opposite since the zip file created with browserify was only 1/5 of the size of the lambduh-gulp zip.
Wouldn’t higher compression suggest that it’s going to take longer to warm-up?; Higher compression requires more compute to decompress.
Actually copying of the zip across the network (but still internal to AWS) is going to be a negligible amount of time.
I use the same zipping method for both, the smaller zip file size is because browserify does not include everything in the node_modules folder I guess?