Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Chrome 96
Windows
Desktop
2 years ago
Test name Executions per second
T1 - set innerHTML 43822.3 Ops/sec
T2 - clone template - appendChild 52595.3 Ops/sec
T3 - clone Template - append 26.5 Ops/sec
T4 - clone HTML Template 27.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • T1 - set innerHTML

  • T2 - clone template - appendChild

  • T3 - clone Template - append

  • T4 - clone HTML Template


;