Reviewers: jaimeyap,

Message:
Review requested

Description:
For a change I'm trying to measure thing before messing with them. To
that end, here's a micro benchmark of various styles of widget creation.
Jaime, I'm hoping you can de-incompetent this for me, and hopefully hint
at how I can make it easier to explore with Speed Tracer.

In the two "pure dom" cases, I'm trying to follow the advice you gave
about creating things detached from the Dom--do they look right on that
front?

One interesting result: at the suggestion of Dan Danilatos, I'm
measuring what happens if use crawling to bind specific dom elements
rather getElementById, and it looks like it's a good bit faster. (My
guess is that the hit for creating dom handles is less than the hit for
attaching to the dom an extra time.) But does it look like I'm actually
comparing apples to apples there?

Please review this at http://gwt-code-reviews.appspot.com/127801

Affected files:
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/Microbenchmarks.gwt.xml
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/EmptyBinder.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/EmptyBinder.ui.xml
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/MicroBenchmark.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/Microbenchmarks.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestDom.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestDomBinder.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestDomBinder.ui.xml
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestDomCrawl.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestFlows.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestWidget.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestWidgetBinder.java
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestWidgetBinder.ui.xml
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/UiBinderInputElements.ui.xml
    
reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/WidgetCreation.java
   reference/Microbenchmarks/war/Microbenchmarks.html
   reference/Microbenchmarks/war/WEB-INF/web.xml


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to