Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0
Chrome 122
Windows
Desktop
2 years ago
Benchmark.js
Using batching - grouping multiple DOM manipulations together
35K/s
Using multiple calls to host objects (DOM)
35K/s
Using multiple calls to host objects (DOM) v2
31K/s
View exact numbers
Test name Executions per second
Using batching - grouping multiple DOM manipulations together 35,154 Ops/sec
Using multiple calls to host objects (DOM) 34,508 Ops/sec
Using multiple calls to host objects (DOM) v2 30,741 Ops/sec
HTML Preparation code:
Tests: