HTML Preparation code:
Script Preparation code:
Tests:
  • .parents(:selector).first();

  • .closest(:selector);

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    .parents(:selector).first();
    .closest(:selector);

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128 on Linux
View result in a separate tab
Test name Executions per second
.parents(:selector).first(); 516456.7 Ops/sec
.closest(:selector); 690583.3 Ops/sec


;