innerHTML vs DocumentFragment

2 months ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Test name Executions per second
innerHTML 133030.8 Ops/sec
DocumentFragment 85227.8 Ops/sec
Tests:
  • innerHTML

  • DocumentFragment

Open this result on MeasureThat.net