Test time avg time avg time-overhead Result
Base (pure overhead)
eval()
parseFloat()
Number()
Unary Plus

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.


Lasse Reichstein Nielsen

Last modified: Fri Oct 31 00:46:23 Romance Standard Time 2003

Valid HTML 4.01!