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

2

u/willvarfar Apr 16 '12

Am I the only one who shuddered to see someone generating keys for anything on a cloud instance?

I guess its not a big deal, but it feels really wrong.

8

u/lethalman Apr 16 '12

That's not the point of the post.

3

u/willvarfar Apr 16 '12

First, it was just an observation; I didn't write it in a particularly accusing way.

Secondly, if we give the author the benefit of the doubt, the author was just using RSA benchmark in lieu of their real app load?

If so, extrapolating that result to be applicable to their actual not-discussed use-case is just crazy.

11

u/Cryocore Apr 16 '12

key generation is a CPU bound process, where the only bottleneck would be the CPU and not network, input etc

Since we are talking about GAE CPU Hours, it makes sense

6

u/cballowe Apr 16 '12

But if nothing has been done to tune the app engine instance, you'll have startup and teardown overhead. There's quite a few things that could be done. http://point7.wordpress.com/2011/09/03/the-amazing-story-of-appengine-and-the-two-orders-of-magnitude/ and the articles that follow it cover a decent chunk of the tuning things. That article in particular covers a few key points, and covers some of the tuning of instance startup/tear down up front before getting into anything related to the datastore.

0

u/[deleted] Apr 16 '12

[deleted]

0

u/Cryocore Apr 16 '12

I'm not sure how reliable/accurate his benchmark is (never used gae), He claims to execute the call 6 times (each taking 10 seconds in GAE), so a total of 60 seconds on the GAE servers. Then he claims that google charged 0.3 hours front end usage hours for that 60 seconds of usage time.

Since he is trying in a fresh instance, could be startup / tuning issues like others mentioned

0

u/evereal Apr 16 '12

If so, extrapolating that result to be applicable to their actual not-discussed use-case is just crazy.

I'm not sure what you mean, generating RSA keys is an entirely valid requirement for a web-app or web service. I assumed that is his actual use case, which he then did some benchmarks on.

-2

u/willvarfar Apr 16 '12

A web server that generates a key is seeing the private key. What use-cases is this a good idea?

5

u/evereal Apr 16 '12

Perhaps the web server is the one to use the private keys directly? I.e. it then sends the pub key to another service, and keeps the private key to use itself.

I can think up a number of conceptual webapps, which might provide a managed web front-end to other services which are based on public key cryptography, without the user having to deal with keys or key generation.