Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
9 months ago
Test name Executions per second
base line 11556474.0 Ops/sec
typeof before clone 83759.3 Ops/sec
just clone 70147.3 Ops/sec
two passes 8184984.0 Ops/sec
no copy 4090888.5 Ops/sec
no copy2 10965635.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • base line

  • typeof before clone

  • just clone

  • two passes

  • no copy

  • no copy2

  • plain for loop


;