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>
var doc = "document";
// setup a tiny object
var foo = {
bar: "value"
};
var baz = "bar";
// setup a really big object
var bigObj = {};
bigObj.one = {};
bigObj.one.two = {};
bigObj.one.two.three = {};
bigObj.one.two.three.four = {};
for (var i = 0; i < 100000; i++) {
bigObj.one.two.three.four["prop" + i] = "value" + i;
}
var bigObjPropName = "prop25";
var bigObjPropNameRef = bigObj.one.two.three.four.prop25;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
window dot |
| ready |
window bracket with literal |
| ready |
window bracket with variable |
| ready |
foo dot |
| ready |
foo bracket with literal |
| ready |
foo bracket with variable |
| ready |
bigObj dot |
| ready |
bigObj bracket with variable |
| ready |
my Test |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.