From: Manolo Carrasco Date: Wed, 7 Sep 2011 07:37:36 +0000 (+0000) Subject: Update jquery version to latest in benchmarking application X-Git-Tag: release-1.3.2~213 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b5faa441fdd728be45f1360e4f5d51d11641f5e7;p=gwtquery.git Update jquery version to latest in benchmarking application --- diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java index 37c88357..985c3c81 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java @@ -27,11 +27,13 @@ import com.google.gwt.core.client.Scheduler.RepeatingCommand; import com.google.gwt.dom.client.Element; import com.google.gwt.query.client.Function; import com.google.gwt.query.client.GQuery; -import com.google.gwt.query.client.Selectors.*; +import com.google.gwt.query.client.Selectors.DeferredSelector; import com.google.gwt.query.client.impl.SelectorEngineCssToXPath; import com.google.gwt.query.client.impl.SelectorEngineImpl; import com.google.gwt.query.client.impl.SelectorEngineNative; import com.google.gwt.query.client.impl.SelectorEngineNativeIE8; +import com.google.gwt.query.client.impl.SelectorEngineNativeMin; +import com.google.gwt.query.client.impl.SelectorEngineNativeMinIE8; import com.google.gwt.query.client.impl.SelectorEngineSizzle; import com.google.gwt.query.client.impl.SelectorEngineSizzleIE; import com.google.gwt.query.client.impl.research.SelectorEngineJS; @@ -189,6 +191,8 @@ public class GwtQueryBenchModule implements EntryPoint { new DynamicBenchmark(new SelectorEngineCssToXPath(), "gwt_css2xpath"), new DynamicBenchmark(new SelectorEngineNative(), "gwt_native"), new DynamicBenchmark(new SelectorEngineNativeIE8(), "gwt_nativeIE8"), + new DynamicBenchmark(new SelectorEngineNativeMin(), "gwt_native_min"), + new DynamicBenchmark(new SelectorEngineNativeMinIE8(), "gwt_native_minIE8"), new IframeBenchmark("jquery"), new IframeBenchmark("dojo"), new IframeBenchmark("prototype"), @@ -295,6 +299,7 @@ public class GwtQueryBenchModule implements EntryPoint { } found = num / numCalls; } catch (Exception e) { + e.printStackTrace(); found = -1; } runTimes[benchMarkNumber] = runtime; diff --git a/samples/src/main/java/gwtquery/samples/public/html/iframebench.html b/samples/src/main/java/gwtquery/samples/public/html/iframebench.html index 1cc624f3..78962fe2 100644 --- a/samples/src/main/java/gwtquery/samples/public/html/iframebench.html +++ b/samples/src/main/java/gwtquery/samples/public/html/iframebench.html @@ -19,7 +19,7 @@ return DOMAssistant.$(sel).length; } - + +