All tests are on the form:
function testX(n,y) {
var x;
var t1 = new Date();
for (var i=0;i<n;i++) {
x = X(y);
}
var t2 = new Date();
return t2 - t1;
}
where X
is one of nothing, eval
, parseFloat
, Number
or unary prefix plus.
Last modified: Fri Oct 31 00:46:23 Romance Standard Time 2003