Script Preparation code:
Tests:
  • While Loop with cached parent_id

  • While Loop no caching parent_id

  • Using ForEach() instead of While Loop

  • While Loop without cache/continue

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    While Loop with cached parent_id
    While Loop no caching parent_id
    Using ForEach() instead of While Loop
    While Loop without cache/continue

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36
Chrome 78 on Mac OS X 10.15.1
View result in a separate tab
Test name Executions per second
While Loop with cached parent_id 21594.0 Ops/sec
While Loop no caching parent_id 22883.9 Ops/sec
Using ForEach() instead of While Loop 21992.3 Ops/sec
While Loop without cache/continue 22697.5 Ops/sec


;