Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
test equality 11243.1 Ops/sec
test strict equality 10988.9 Ops/sec
test inequality 163922976.0 Ops/sec
test strict inequality 162155424.0 Ops/sec
Tests:
  • test equality

    AخA
     
    var n = 0;
    while(true) {
        n++;
        if(n==100000) 
            break;
    }
  • test strict equality

     
    var n = 0;
    while(true) {
        n++;
        if(n===100000) 
            break;
    }
  • test inequality

     
    var n = 0;
    while(true) {
        n++;
        if(n!=100000) 
            break;
    }
  • test strict inequality

     
    var n = 0;
    while(true) {
        n++;
        if(n!==100000) 
            break;
    }