HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
let e = [];
let d = new Date();
for(let i=0; i<100; i++){
  e.push(new Date(d));
  d.setDate(d.getDate()+1);
}
Tests:
  • Plus for i

     
    for(let i=0; i<100; i++){
      +e[i];
    }
  • getTime() for i

     
    for(let i=0; i<100; i++){
      e[i].getTime();
    }
  • Number() for i

     
    for(let i=0; i<100; i++){
      Number(e[i].getTime());
    }
  • Plus foreach

     
    for(let i of e){
      +i;
    }
  • getTime foreach

     
    for(let i of e){
      i.getTime();
    }
  • Number foreach

     
    for(let i of e){
      Number(i);
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Plus for i
    getTime() for i
    Number() for i
    Plus foreach
    getTime foreach
    Number foreach

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Plus for i 163382.4 Ops/sec
getTime() for i 14842042.0 Ops/sec
Number() for i 1187312.2 Ops/sec
Plus foreach 173020.2 Ops/sec
getTime foreach 2853309.2 Ops/sec
Number foreach 196136.8 Ops/sec