Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Windows
Desktop
2 years ago
Benchmark.js
Node.contains()
1.1M/s
jQuery.contains()
569K/s
View exact numbers
Test name Executions per second
Node.contains() 1,142,805 Ops/sec
jQuery.contains() 569,152 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: