Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134
Mac OS X 10.15
Desktop
one year ago
Benchmark.js
Node.contains()
9.3M/s
jQuery.contains()
3.7M/s
View exact numbers
Test name Executions per second
Node.contains() 9,295,217 Ops/sec
jQuery.contains() 3,709,102 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: