Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36
Chrome 93
Windows
Desktop
3 years ago
Test name Executions per second
Simple - Template 481047.0 Ops/sec
Simple - JavaScript 421032.8 Ops/sec
Simple - innerHTML 241448.8 Ops/sec
Complex - Template 144518.5 Ops/sec
Complex - JavaScript 76365.5 Ops/sec
Complex - innerHTML 69954.1 Ops/sec
Script Preparation code:
Tests:
  • Simple - Template

  • Simple - JavaScript

  • Simple - innerHTML

  • Complex - Template

  • Complex - JavaScript

  • Complex - innerHTML


;