On Maze

JavaScript performance comparison

Test case created by Josh

Preparation code

<div id="home-menu">
                                <li id="home-nav"><a href="/" class="home-link"><img src="/img/transparent.png" class="home-nav-house" alt="Cynergy. The Experience Agency" width="26" height="25"></a></li>
                            <li id="who-we-are-nav"><a href="/who_we_are/" class="other-link"><strong>WHO</strong> WE ARE</a></li>
                                <li id="what-we-do-nav"><a href="/what_we_do/" class="other-link"><strong>WHAT</strong> WE DO</a></li>
                                <li id="how-we-do-it-nav"><a href="/how_we_do_it/" class="other-link"><strong>HOW</strong> WE DO IT</a></li>
                                <li id="our-work-nav"><a href="/our_work/" class="other-link">OUR <strong>WORK</strong></a></li>
                                <li id="contact-nav"><a href="/contact/" class="other-link"><strong>CONTACT</strong> US</a></li>
Benchmark.prototype.setup = function() {
    b = 0;
    a = function() {
      b += 1;
    $('.home-link').on('tap', a());
    $('div#container div#home-menu ul li#who-we-are-nav a.other-link').on('tap', 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
Simple on
simple call complex on
$('#what-we-do-nav .other-link').trigger('tap');
complex call complex on
$('div#container div#home-menu ul li#who-we-are-nav a.other-link').trigger('tap');

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

Compare results of other browsers


Comment form temporarily disabled.

Add a comment