Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Mobile Safari/537.36
Chrome Mobile 128
Android
Mobile
2 months ago
Test name Executions per second
replaceChild near start 225159.1 Ops/sec
replaceChild near end 224562.9 Ops/sec
removeChild + insertBefore near start 166675.5 Ops/sec
removeChild + insertBefore near end 166039.5 Ops/sec
insertBefore + removeChild near start 172379.0 Ops/sec
insertBefore + removeChild near end 171698.0 Ops/sec
insertBefore + removeChild near start (variant 2) 166353.8 Ops/sec
insertBefore + removeChild near end (variant 2) 166390.5 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)


;