Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
22 days ago
Test name Executions per second
forEach + clear 17128028.0 Ops/sec
forEach + delete 55826936.0 Ops/sec
for...of + clear 18566516.0 Ops/sec
for...of + delete 74706136.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach + clear

  • forEach + delete

  • for...of + clear

  • for...of + delete