§ů§ůůůůů

JavaScript performance comparison

Test case created

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<div id="hi"><p>hi</p></div>
 

Preparation code output

hi

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
ljljlkjlkjl
var $myElements = $("#hi");
$myElements.delegate("p", 'click dblclick', function (event) {
   if (event.type === 'event1') { /* Handle event 1 */ }
   if (event.type === 'event2') { /* Handle event 2 */ }
});
pending…
asdlasdasdkl
var $myElements = $("#hi");
$myElements.delegate("p", 'click', function (event) {
       /* Handle event 1 */
});

$myElements.delegate("p", 'dblclick', function (event) {
       /* Handle event 2 */
});
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