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

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

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

     
    try {
        for (var i = 0; ; i++) {
            if (i >= 100)
                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: 2 years ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1
Mobile Safari 15 on iOS 15.5
View result in a separate tab
Test name Executions per second
StandardLoop 21438220.0 Ops/sec
TryCatchLoop 24294166.0 Ops/sec
TryCatchThrowLoop 2747505.0 Ops/sec