Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36
Chrome 94
Windows 7
Desktop
3 years ago
Test name Executions per second
Simple - Template 246113.4 Ops/sec
Simple - JavaScript 226905.0 Ops/sec
Simple - innerHTML 145006.8 Ops/sec
Complex - Template 84507.9 Ops/sec
Complex - JavaScript 40662.9 Ops/sec
Complex - innerHTML 42714.6 Ops/sec
Script Preparation code:
Tests:
  • Simple - Template

  • Simple - JavaScript

  • Simple - innerHTML

  • Complex - Template

  • Complex - JavaScript

  • Complex - innerHTML


;