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: 7 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Windows
View result in a separate tab
Test name Executions per second
StandardLoop 156945.6 Ops/sec
TryCatchLoop 158890.7 Ops/sec
TryCatchThrowLoop 11855.2 Ops/sec