Script Preparation code:
AخA
 
"use strict";
Tests:
  • let

     
    let a = 0;
    for(let i = 0; i< 1000; i++){
        let b = i+2;
        a+=b;
    }
  • var

     
    var a = 0;
    for(var i = 0; i< 1000; i++){
        var b = i+2;
        a+=b;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    let
    var

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106 on Windows
View result in a separate tab
Test name Executions per second
let 1874753.8 Ops/sec
var 1865563.5 Ops/sec