HTML Preparation code:
x
 
1
<script
2
  src="https://code.jquery.com/jquery-3.4.1.js"
3
  integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
4
  crossorigin="anonymous"></script>
5
6
<div class="parent">
7
  <div></div>
8
  <div class="test"></div>
9
  <div class="target"></div>
10
</div>
Tests:
  • find

     
    var el = $('.test').parent().find('.target');
    console.log(el);
  • context

     
    var el = $('.target', '.parent');
    console.log(el);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    find
    context

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Chrome 79 on Mac OS X 10.15.2
View result in a separate tab
Test name Executions per second
find 50557.2 Ops/sec
context 56326.0 Ops/sec