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 11875754.0 Ops/sec
typeof before clone 85060.0 Ops/sec
just clone 70298.6 Ops/sec
two passes 8146348.0 Ops/sec
no copy 4078645.5 Ops/sec
no copy2 10916347.0 Ops/sec
plain for loop 15838686.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


;