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 221997.9 Ops/sec
replaceChild near end 218213.2 Ops/sec
removeChild + insertBefore near start 163739.9 Ops/sec
removeChild + insertBefore near end 162955.3 Ops/sec
insertBefore + removeChild near start 168543.0 Ops/sec
insertBefore + removeChild near end 166894.3 Ops/sec
insertBefore + removeChild near start (variant 2) 163112.7 Ops/sec
insertBefore + removeChild near end (variant 2) 163325.4 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)


;