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
Test the performance of traditional (ES3-style) mixin functions with mixin functions that handle ES5 properties, as proposed for Object.mixin in ES6.
var source = {
a: 1,
b: true,
c: "test"
};
for (var k = 0; k < 25; k+=1) {
source[k] = Math.random().toString(36);
}
var target = {};
Ready to run.
Test | Ops/sec | |
---|---|---|
ES3 all properties |
| ready |
ES3 own properties |
| ready |
ES5 enumerable properties |
| ready |
ES5 own properties |
| ready |
ES5 enumerable properties (array) |
| ready |
ES5 enumerable properties (array) with check |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.