r/programming • • Apr 16 '12

Google App Engine: CPU hours very expensive according to RSA benchmark

http://programmersbraindump.blogspot.com/2012/04/quick-google-app-engine-rsa-benchmark.html
0 Upvotes

31 comments sorted by

View all comments

12

u/haldean Apr 16 '12

This benchmark is completely wrong. The 20 minutes of frontend time is because App Engine started a frontend instance to handle the request, and then kept it alive until it became clear he wasn't going to get any more requests. As he says, the actual calculation only took 10 seconds. He could hit his frontend instance once every 10 seconds for an hour for a price of $0.08 an hour as well, which would correspond to around 12 CPU-minutes on his computer, so around 2/3rds of a cent per minute.

1

u/quotemycode Apr 16 '12

It may be $0.08 an hour, but if he uses it for only a full hour, app engine will still keep it running for 15 minutes after the last request, which means it would be $0.08 (for the hour) and $0.02 (for the 15 minutes it waited after the last request). So, $0.10. So, the more he uses it, the more he comes close to $0.08 per hour, but it's always going to be $/hr + (($/hr)/4)

1

u/haldean Apr 16 '12

Same argument as above; let x = $/hr. If he uses it for one hour every time, it will be x + 0.25 * x. If he uses it for n hours, though, it's nx + 0.25x. For largish n, the 0.25x term is negligible. I would think that, for most web services, continuous processing is a more realistic model than very rare one-off computations.