teste-code

JavaScript performance comparison

Test case created by teste-code

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
teste1
init:function() {
        catalog.getImageSize();
        catalog.initQuickView();
        catalog.initScrollToTopButton();
        catalog.initPreviewImageScroll();
        catalog.bindNavigationKeys();
        /*enable brand search*/
        if ($('#fct-brand-search').length) {
            catalog.enableBrandSearch();
        }
    }
    onError: function(img) {
        img.attr('src',$('#placeholder').val());
        img.onerror=null;
        img.attr('width',catalog.image_width);
        img.addClass('error-img');
        img.parents('.lazyImage').addClass('loaded');
        return true;
    }
pending…
teste2
init:function() {
        catalog.getImageSize();
        catalog.initQuickView();
        catalog.initScrollToTopButton();
        catalog.initPreviewImageScroll();
        catalog.bindNavigationKeys();
        /*enable brand search*/
        if ($(document.getElementById('fct-brand-search')).length) {
            catalog.enableBrandSearch();
        }
    }
    onError: function(img) {
        img.attr('src',$(document.getElementById('placeholder')).val());
        img.onerror=null;
        img.attr('width',catalog.image_width);
        img.addClass('error-img');
        img.parents('.lazyImage').addClass('loaded');
        return true;
    }
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