Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Ubuntu
Desktop
one year ago
Benchmark.js
Node.contains()
7.3M/s
jQuery.contains()
3.0M/s
View exact numbers
Test name Executions per second
Node.contains() 7,293,372 Ops/sec
jQuery.contains() 3,011,446 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: