jquery element in dom
JavaScript performance comparison
Preparation code
<div id="element"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
Benchmark.prototype.setup = function() {
var el = $("#element");
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
selector |
|
pending… |
object |
|
pending… |
jQuery.contains |
|
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
- Revision 2: published by SLaks
- Revision 3: published
- Revision 4: published
- Revision 6: published
- Revision 7: published
- Revision 8: published by Chris Moschini
- Revision 9: published
- Revision 10: published by Marek
- Revision 11: published
- Revision 12: published by Sev
- Revision 13: published
0 comments