Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Ubuntu
Desktop
26 days ago
Test name Executions per second
JavaScript Template 85865.4 Ops/sec
only innerHTML 77898.4 Ops/sec
DOM Template, repeated getElementById 67202.9 Ops/sec
DOM Template, single getElementById 20676.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • JavaScript Template

  • only innerHTML

  • DOM Template, repeated getElementById

  • DOM Template, single getElementById