jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Computes HMAC values for a short set of request headers. HMAC values are useful for verifying request details, for example when submitting OAuth signed requests.
This test uses the jsSHA implementations for SHA-1, SHA-256, and HMAC. http://jssha.sourceforge.net/
<script src="http://dl.dropbox.com/u/1115421/scripts/sha.js"></script>
<script>
var request = 'GET /resource/1 HTTP/1.1\n' + 'Host: example.com\n' + 'Authorization: MAC id="h480djs93hd8",' + 'nonce="274312:dj83hs9s",' + 'mac="kDZvddkndxvhGRXZhvuDjEWhGeE="';
var key = 'SecretKey';
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
HMAC SHA-1 |
| ready |
HMAC SHA-256 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.