events for callbacks

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/prototype/1/prototype.js"></script>

<a href="" id="test-id">

Test runner

Ready to run.

Testing in
TestOps/sec
event, element
$('test-id').observe("custom:event", function(event, element) {})

$('test-id').fire("custom:event")
ready
nothing
$('test-id').observe("custom:event", function() {})

$('test-id').fire("custom:event")
ready

Revisions

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