Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Linux
Desktop
2 months ago
Test name Executions per second
replaceChild near start 568804.1 Ops/sec
replaceChild near end 558597.2 Ops/sec
removeChild + insertBefore near start 348778.6 Ops/sec
removeChild + insertBefore near end 352616.9 Ops/sec
insertBefore + removeChild near start 363936.3 Ops/sec
insertBefore + removeChild near end 360026.7 Ops/sec
insertBefore + removeChild near start (variant 2) 356896.9 Ops/sec
insertBefore + removeChild near end (variant 2) 357285.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • replaceChild near start

  • replaceChild near end

  • removeChild + insertBefore near start

  • removeChild + insertBefore near end

  • insertBefore + removeChild near start

  • insertBefore + removeChild near end

  • insertBefore + removeChild near start (variant 2)

  • insertBefore + removeChild near end (variant 2)


;