X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=build%2Fspeed%2Fbenchmarker.js;fp=build%2Fspeed%2Fbenchmarker.js;h=bfcc16ed98379d586fc30250cc2e6e6db1fdf9e2;hp=b2c05a149980d9a0da108e215b5ec46cfdef8b24;hb=9c029f1687d87abd52dca1cc2a5ecdb01895d6de;hpb=944484c3fe001bcfea52fd85612042d7475597a1 diff --git a/build/speed/benchmarker.js b/build/speed/benchmarker.js index b2c05a1..bfcc16e 100755 --- a/build/speed/benchmarker.js +++ b/build/speed/benchmarker.js @@ -1,19 +1,42 @@ jQuery.benchmarker.tests = [ - "*", - "body", "body div", "div", - "div div div", "div div", ".dialog", "div.dialog", "div .dialog", - "#speech5", "div#speech5", "div #speech5", "div > div", "div.scene div.dialog", - "div#scene1.scene div.dialog div.direction", "#scene1 #speech1", "body > div.dialog div div#speech5", - "div:not(#speech5)", "div:not(.dialog)", - "div:nth-child(even)", "div:nth-child(odd)", - "div:nth-child(1)", "div:nth-child(2n)", - "div:nth-child(2n+3)", "div:first-child", - "div:last-child", "div:only-child", - "div:contains(CELIA)", - "div ~ div", "div + div", - "div[class]", "div[class=dialog]", "div[class!=dialog]", - "div[class^=dialog]", "div[class$=dialog]", "div[class*=dialog]" - ] + // Selectors from: + // http://ejohn.org/blog/selectors-that-people-actually-use/ + /* + // For Amazon.com + "#navAmazonLogo", "#navSwmSkedPop", + ".navbar", ".navGreeting", + "div", "table", + "img.navCrossshopTabCap", "span.navGreeting", + "#navbar table", "#navidWelcomeMsg span", + "div#navbar", "ul#navAmazonLogo", + "#navAmazonLogo .navAmazonLogoGatewayPanel", "#navidWelcomeMsg .navGreeting", + ".navbar .navAmazonLogoGatewayPanel", ".navbar .navGreeting", + "*", + "#navAmazonLogo li.navAmazonLogoGatewayPanel", "#navidWelcomeMsg span.navGreeting", + "a[name=top]", "form[name=site-search]", + ".navbar li", ".navbar span", + "[name=top]", "[name=site-search]", + "ul li", "a img", + "#navbar #navidWelcomeMsg", "#navbar #navSwmDWPop", + "#navbar ul li", "#navbar a img" + */ + // For Yahoo.com + "#page", "#masthead", "#mastheadhd", + ".mastheadbd", ".first", ".on", + "div", "li", "a", + "div.mastheadbd", "li.first", "li.on", + "#page div", "#dtba span", + "div#page", "div#masthead", + "#page .mastheadbd", "#page .first", + ".outer_search_container .search_container", ".searchbox_container .inputtext", + "*", + "#page div.mastheadbd", "#page li.first", + "input[name=p]", "a[name=marketplace]", + ".outer_search_container div", ".searchbox_container span", + "[name=p]", "[name=marketplace]", + "ul li", "form input", + "#page #e2econtent", "#page #e2e" + ]; jQuery.fn.benchmark = function() { this.each(function() {