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

  • $parent.find("#child")

  • document.getElementById("child")