Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129
Windows
Desktop
2 months ago
Test name Executions per second
JavaScript Template 253713.0 Ops/sec
only innerHTML 247669.2 Ops/sec
DOM Template, repeated getElementById 96442.5 Ops/sec
DOM Template, single getElementById 63523.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • JavaScript Template

  • only innerHTML

  • DOM Template, repeated getElementById

  • DOM Template, single getElementById


;