312319sakd1231231 (v3)

Revision 3 of this benchmark created by _nderscore on


Preparation HTML

<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;
}

</script>

Setup

var a = new Person();

Test runner

Ready to run.

Testing in
TestOps/sec
fun
if( fun(a) ) die
ready
prop
if( prop(a) ) die
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.