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

  • only innerHTML

  • DOM Template, repeated getElementById

  • DOM Template, single getElementById