Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.167 Chrome/64.0.3282.167 Safari/537.36
Chromium 64
Ubuntu
Other
6 years ago
Test name Executions per second
test equality 6407.1 Ops/sec
test strict equality 6430.8 Ops/sec
string to int 831.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;
    }
  • string to int

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