Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
2 years ago
Benchmark.js
Node.contains()
1.7M/s
jQuery.contains()
805K/s
View exact numbers
Test name Executions per second
Node.contains() 1,714,661 Ops/sec
jQuery.contains() 804,695 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: