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 553753.6 Ops/sec
replaceChild near end 556656.3 Ops/sec
removeChild + insertBefore near start 473032.4 Ops/sec
removeChild + insertBefore near end 378911.0 Ops/sec
insertBefore + removeChild near start 355702.9 Ops/sec
insertBefore + removeChild near end 359503.1 Ops/sec
insertBefore + removeChild near start (variant 2) 353420.7 Ops/sec
insertBefore + removeChild near end (variant 2) 352952.2 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)


;