dojo event delegation-213213

JavaScript performance comparison

Test case created by Gregory Green

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/dojo/1/dojo/dojo.xd.js"></script>
<a class="test">yes</a>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
blargh1
dojo.on(document, ".test:click", function() {});
dojo.on.emit(click, {query(".test")});
pending…
blargh2
dojo.on(dojo.query(".test"), "click", function() {});
dojo.on.emit(click, {query(".test")});
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment