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 11823767.0 Ops/sec
typeof before clone 86344.4 Ops/sec
just clone 70554.4 Ops/sec
two passes 8101998.0 Ops/sec
no copy 4053721.8 Ops/sec
no copy2 10859913.0 Ops/sec
plain for loop 11351482.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


;