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
<script src="http://cdn.cognitect.com/transit/transit-0.8.616-min.js" type="text/javascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.11.0/es6-shim.min.js" type="text/javascript"></script>
var smallObject = {};
for(var i = 0; i < 8; i++) {
smallObject["foo"+i] = i;
}
var smallES6Map = new Map();
for(var i = 0; i < 8; i++) {
smallES6Map.set("foo"+i, i);
}
var smallTransitMap = transit.map();
for(var i = 0; i < 8; i++) {
smallTransitMap.set("foo"+i, i);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
es6-shim Map set |
| ready |
transit-js Map set |
| ready |
Object set |
| ready |
es6-shim Map has |
| ready |
transit map has |
| ready |
Object hasOwnProperty |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.