Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97
Windows 8.1
Desktop
2 years ago
Test name Executions per second
Simple - Template 238912.7 Ops/sec
Simple - JavaScript 243245.7 Ops/sec
Simple - innerHTML 139318.1 Ops/sec
Complex - Template 86527.3 Ops/sec
Complex - JavaScript 50230.1 Ops/sec
Complex - innerHTML 44275.3 Ops/sec
Script Preparation code:
Tests:
  • Simple - Template

  • Simple - JavaScript

  • Simple - innerHTML

  • Complex - Template

  • Complex - JavaScript

  • Complex - innerHTML


;