// profile
( function ( mw, $ ) {
   "use strict";
   var data = ;
   var t0, t1;
   var i;
   var val1 = ;
   var val2 = ;
   var max = 500000;
   for (i=0; i<max; i++) {data.push(Math.round ((0.5-Math.random())*18000000));}
   
   t0 = performance.now();
   for (i=0; i<max;i++) { val1.push (data*0.00001);}
   t1 = performance.now();
   console.log(max + " times multiply took " +  (t1 - t0).toString() + " milliseconds.");
   
   t0 = performance.now();
   for (i=0; i<max;i++) { val2.push (data/100000);}
   t1 = performance.now();
   console.log(max + " times divide took " +  (t1 - t0).toString() + " milliseconds.");
}( mediaWiki, jQuery ) );