Monday, May 04, 2009

Benchmarking javascript with dropsecret.com

Decrypting a message on dropsecret.com can take a noticeable amount of time. This is because there are a fair amount of operations involved in decrypting an rsa message. But there is also a noticeable amount of difference between the time it takes different browsers. So I added a simple benchmarking ability to dropsecret.

Simply go to your drop page on dropsecret (if you don't have one you can create one for free) and add the hash #benchmark to the url; ie
http://dropsecret.com/{drop page name}/#benchmark
(You may have to the page to get the new js file). Then decrypt one of your messages. The time it takes will appear the in the top left corner.

Some of my results in Windows 7 are:
IE 8: 61.147 seconds (after telling it not to abort the javascript several times)
Safari 3.2: 57.813 seconds (after telling it not to abort the javascript several times)
Opera 9.6: 37.426 seconds
Firefox 3.0: 27.759 seconds
Chrome 1.0: 1.616 seconds (no really, 1.616 seconds).

Of course your results will vary based on your machine speed and the message length. But now you can test out new browsers claims to have fancy fast js.

No comments: