From 1f7bbd8939d1238c91942c6f0d49f9944f8db635 Mon Sep 17 00:00:00 2001 From: jeresig Date: Sun, 10 Oct 2010 14:51:11 -0400 Subject: [PATCH] Also test for single element filtering. --- speed/filter.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/speed/filter.html b/speed/filter.html index 876206d8..f24ed7d9 100644 --- a/speed/filter.html +++ b/speed/filter.html @@ -13,11 +13,14 @@ jQuery.each([".zoo", "#zoo", "[data-foo=zoo]", "#nonexistant"], function(i, item) { setTimeout(function(){ name = "filter '" + item + "'"; - jQuery("#results").append("
  • " + name + "
  • "); + "
  • old: " + benchmarkString("old('div').filter('" + item + "')", 1000, name) + "
  • " + + ""); + jQuery("#results").append("
  • single " + name + "
  • "); }, 100); }); }); @@ -26,6 +29,8 @@

    Hello

    +
    +