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
var objs = [];
for( var i = 0; i < 100000; i++ ) {
objs.push( {
name: "Object " + i,
contact: {
email: i + "@" + i.com,
postalNumber: i
}
} );
}
var path = "contact.email";
// Write the combined length of e-mails.
// Ensures the e-mails are used and validates result.
console.log( result.reduce( ( c, n ) => c += n.length, 0 ) );
Ready to run.
Test | Ops/sec | |
---|---|---|
Eval |
| ready |
Full dynamic |
| ready |
Curried dynamic |
| ready |
Curried dynamic non-reduce |
| ready |
Static |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.