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
Compares the performance of the "in" operator and the access of properties using []. Both for existing and non-existing properties.
<script type="application/javascript">
var obj1 = {
testProp1: {}
};
var obj2 = {
testProp2: {}
};
var obj3 = {
testProp3: {}
};
var obj4 = {
testProp4: {}
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
property access existing |
| ready |
property access not existing |
| ready |
in existing |
| ready |
in not existing |
| ready |
property access existing with compare |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.