jQuery vs JavaScript Performance Comparison
JavaScript performance comparison
Preparation code
<div id="hello" data-id="hello">
</div>
<div class="bye" data-class="bye">
</div>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
JavaScript ID Selector |
|
pending… |
JavaScript Class Selector |
|
pending… |
JavaScript querySelectorAll Selector |
|
pending… |
JavaScript Query Selector |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by Ben Everard
- Revision 2: published by webaware
- Revision 3: published by yeikos
- Revision 4: published
- Revision 5: published
- Revision 6: published by Erwan Legrand
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published
- Revision 11: published
- Revision 12: published by benjamingr
- Revision 13: published by Feggzy
- Revision 14: published and last updated
- Revision 15: published
- Revision 16: published
0 comments