Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Linux
Desktop
one year ago
Benchmark.js
Using batching - grouping multiple DOM manipulations together
11K/s
Using multiple calls to host objects (DOM)
10K/s
Using multiple calls to host objects (DOM) v2
10K/s
View exact numbers
Test name Executions per second
Using batching - grouping multiple DOM manipulations together 10,933 Ops/sec
Using multiple calls to host objects (DOM) 10,471 Ops/sec
Using multiple calls to host objects (DOM) v2 9,723 Ops/sec
HTML Preparation code:
Tests: