jquery is awesome

JavaScript performance comparison

Test case created

Preparation code

<div id="Stupid_Div">
  Stupid Crap
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>

Preparation code output

Stupid Crap

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Jquery
$("#Stupid_Div").append("<div id='test1'></div>")
$("#Stupid_Div").append("<div id='test2'></div>")
$("#Stupid_Div").append("<div id='test3'></div>")
$("#Stupid_Div").append("<div id='test4'></div>")
pending…
Vanilla JS
var stupid_div = document.getElementById("Stupid_Div")
stupid_div.appendChild("<div id='test1'></div>")
stupid_div.appendChild("<div id='test2'></div>")
stupid_div.appendChild("<div id='test3'></div>")
stupid_div.appendChild("<div id='test4'></div>")
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:

0 comments

Add a comment