Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Linux
Desktop
2 years ago
Benchmark.js
Using batching - grouping multiple DOM manipulations together
21K/s
Using multiple calls to host objects (DOM)
20K/s
Using multiple calls to host objects (DOM) v2
20K/s
View exact numbers
Test name Executions per second
Using batching - grouping multiple DOM manipulations together 20,768 Ops/sec
Using multiple calls to host objects (DOM) 20,426 Ops/sec
Using multiple calls to host objects (DOM) v2 20,012 Ops/sec
HTML Preparation code:
Tests: