Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
Chrome 132
Windows
Desktop
one year ago
Benchmark.js
Node.contains()
7.3M/s
jQuery.contains()
3.2M/s
View exact numbers
Test name Executions per second
Node.contains() 7,285,920 Ops/sec
jQuery.contains() 3,180,036 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: