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
Check string interning capability a little more thoroughly....
var obj1 = new Object();
var obj2 = new Object();
var obj3 = obj1;
var str1 = "a string";
var str2 = "a string";
var str3 = str1.slice(0,1)+str2.slice(1);
var str4 = eval(JSON.stringify(str3));
var str5 = eval(JSON.stringify(str1));
Ready to run.
Test | Ops/sec | |
---|---|---|
diff obj |
| ready |
same obj |
| ready |
same obj == |
| ready |
same str == |
| ready |
same str === |
| ready |
same str op == |
| ready |
same str op === |
| ready |
forcing intern == |
| ready |
forcing intern === |
| ready |
two jsons? |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.