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
Comparison of ECC performance between Elliptic.JS and Emscripten-libsecp256k1
<script src="https://cdn.rawgit.com/indutny/elliptic/feature/mozilla/dist/elliptic.min.js"></script>
<script src="https://cdn.rawgit.com/indutny/063d124faa2b38fe5e5d/raw/ba94a287f79a68418c4aa2a44a0bdd66eaa4372c/secp256k1.js"></script>
var ellipticEcdsa = new ellipticjs.ec('secp256k1');
var em = Module;
em._secp256k1_start(3);
// Honestly saying this could happen in benchmark function itself,
// but let's assume that user app could cache it somehow
var out = em._malloc(128);
var out_s = em._malloc(4);
var secexp = em._malloc(32);
Ready to run.
Test | Ops/sec | |
---|---|---|
Elliptic.js |
| ready |
libsecp256k1 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.