perf-loops-yui3.js revision 160dc8e953e71d6ef7fedc3d518b63ffa62328ca
name : 'YUI 3 (git)',
suite : 'Loop Constructs',
version: '2010-05-28',
tests: {
"Object enumeration (exclude prototype)": {
asyncSetup : true,
bootstrapYUI: true,
iterations : 20,
setup: function () {
var i = 10000,
while (i--) {
testObject['key_' + i] = i;
}
done();
});
},
test: function () {
var sum = 0;
// Simple arithmetic operation just to prevent an optimizing
// JS engine from skipping over the empty loop.
});
}
},
"Object enumeration (include prototype)": {
asyncSetup : true,
bootstrapYUI: true,
iterations : 20,
setup: function () {
var i = 10000,
while (i--) {
testObject['key_' + i] = i;
}
done();
});
},
test: function () {
var sum = 0;
// Simple arithmetic operation just to prevent an optimizing
// JS engine from skipping over the empty loop.
}, null, true);
}
}
}
});