Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
last-child
(version: 8)
Comparing performance of:
:last vs :last-child vs Javascript vs Javascript2
Created:
9 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src="https://code.jquery.com/jquery-2.1.3.min.js" integrity="sha256-ivk71nXhz9nsyFDoYoGf2sbjrR9ddh+XDkCcfZxjvcM=" crossorigin="anonymous"></script> <table id="tableList" class="slcBody" cellspacing="0" cellpadding="1" role="listbox"> <tbody> <tr role="option" class="slcRow" aria-selected="true" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;"> </td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Abby Benton</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Abby Fender</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alan Schuck</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alan Gosdin</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alan Harris</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alan Aimee</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alan Perry</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alan Mathis</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alex Arnold</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alex Crawford</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alex Dennison</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alex Steele</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alexandra Hall</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alexandra Blades</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Alyssa Hooks</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Andre Milano</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Angel McRaney</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Anthony John Beck</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Anthony John Russell</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Anthony John Rasche</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Anthony Michael Delany</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Anthony Michael Carter</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Anthony Michael Frann</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Arielle Barash</td> </tr> <tr role="option" class="slcRow" style="height: 16px;"> <td nowrap="" style="padding-left: 7px;">Arielle Carter</td> </tr> </tbody> </table>
Tests:
:last
var element = $("#tableList").find("tr:last")[0];
:last-child
var element = $("#tableList").find("tbody > :last-child")[0];
Javascript
var element = $(document.getElementById("tableList").firstChild).find(":last")[0];
Javascript2
var element = $(document.getElementById("tableList")).find("tr:last")[0];
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
:last
:last-child
Javascript
Javascript2
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
I'll do my best to extract relevant information from the provided benchmark results. From the benchmark results, I can see that there are four different test cases with various names: * ":last" * ":last-child" * "Javascript" * "Javascript2" Each test case has a corresponding RawUAString, Browser, DevicePlatform, OperatingSystem, and ExecutionsPerSecond value. The RawUAString indicates the type of browser and device being used. Based on the benchmark results, I can make some observations: * Firefox 46 is consistently producing high execution rates across all four test cases. * The ":last" and ":last-child" test cases produce different execution rates compared to the "Javascript" and "Javascript2" test cases. * There seems to be a noticeable difference in execution rate between the "Javascript" and "Javascript2" test cases, with "Javascript2" producing lower execution rates. Without further context or information about what these benchmark results are measuring, it's difficult to provide more specific insights. However, I can suggest some potential questions that could be answered based on these results: * Which test case produces the highest execution rate? * How do the execution rates of ":last" and ":last-child" compare to those of "Javascript" and "Javascript2"? * What factors might contribute to the differences in execution rates between "Javascript" and "Javascript2"? Please let me know if you have any specific questions or need further clarification!
Related benchmarks:
find id
jQuery :visible vs Javascript : find visible element
Selectors or children
for condition
Comments
Confirm delete:
Do you really want to delete benchmark?