Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.18 Safari/537.36 Edg/96.0.1054.5
Chrome 96
Windows
Desktop
3 years ago
Test name Executions per second
replaceChild 351772.2 Ops/sec
replaceChildren 213717.8 Ops/sec
append documentFragment 139533.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • replaceChild

  • replaceChildren

  • append documentFragment