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>
function Person() {
this._age = Math.random();
}
Person.prototype.age = function() {
return this._age;
};
var a = new Person();
function fun( a ) {
return a.age() === 3;
}
function prop( a ) {
return a._age === 3;
}
var a = new Person();
var l = 1e5;
while(l--) {
fun(a); prop(a);
}
</script>
var a = new Person();
Ready to run.
Test | Ops/sec | |
---|---|---|
fun |
| ready |
prop |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.