Script Preparation code:
AخA
 
var endIteration = {};
Tests:
  • StandardLoop

     
    for (var i = 0; i < 10000; i++) {
        ;
    }
  • TryCatchLoop

     
    try {
        for (var i = 0; i < 10000; i++) {
            ;
        }
    } catch(e) {
    }
  • TryCatchThrowLoop

     
    try {
        for (var i = 0; ; i++) {
            if (i >= 10000)
                throw endIteration;
        }
    } catch(e) {
        if (e != endIteration)
            throw e;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    StandardLoop
    TryCatchLoop
    TryCatchThrowLoop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 days ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
Chrome Mobile 131 on Android
View result in a separate tab
Test name Executions per second
StandardLoop 98893.6 Ops/sec
TryCatchLoop 98570.6 Ops/sec
TryCatchThrowLoop 84055.1 Ops/sec