Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Ubuntu
Desktop
3 years ago
Test name Executions per second
$("#child") 2387534.0 Ops/sec
$parent.find("#child") 550344.3 Ops/sec
document.getElementById("child") 2702703.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $("#child")

  • $parent.find("#child")

  • document.getElementById("child")