DOM manipulation vs innerhtml

one year ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36
Test name Executions per second
innerHTML 109282.9 Ops/sec
DOM manipulation 83822.8 Ops/sec
HTML Preparation code:
Tests:
  • innerHTML

  • DOM manipulation

Open this result on MeasureThat.net