Benchmarks

102 views
Skip to first unread message

Justin Fagnani

unread,
Jan 31, 2014, 1:55:50 PM1/31/14
to polymer-dev, John Messerly, Sigmund Cherem
I'm looking at benchmarking the Polymer.dart port. Are there any rendering benchmarks available that I can port so we can compare the implementations?

If not, are there some ideas on what would be good to benchmark? So far Im thinking of exercising the four template binding types (bind, if, repeat and ref) both independently and together with expressions that touch the model, globals, and names from outer scopes in nested templates.

Thanks,
  Justin

John Messerly

unread,
Jan 31, 2014, 2:29:19 PM1/31/14
to Justin Fagnani, polymer-dev, Sigmund Cherem
for data bindings with polymer-expressions, there is: https://github.com/Polymer/TemplateBinding/tree/master/benchmark

Hoa V. Dinh

unread,
Jan 31, 2014, 2:37:17 PM1/31/14
to Justin Fagnani, polymer-dev, John Messerly, Sigmund Cherem
Just for information, our startup time for Spark (a Chrome Apps in Polymer) is high when running in Chromium.
It takes 5 sec before showing any UI elements.
Without polymer, it used to show right-away the UI of the application (I’d say < 0.2 sec).

-- 
Hoa V. Dinh

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAEKsHmCr186RHk9ezrRDZpxk4FALJX2e4Hfm2iPctuA7KhTvmg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rafael Weinstein

unread,
Jan 31, 2014, 3:36:29 PM1/31/14
to Viet Hoa Dinh, Justin Fagnani, John Messerly, polymer-dev, Sigmund Cherem

Are you using the dart impl of polymer?

John Messerly

unread,
Jan 31, 2014, 3:41:51 PM1/31/14
to Rafael Weinstein, Viet Hoa Dinh, Justin Fagnani, polymer-dev, Sigmund Cherem
AFAIK they are. Is that compiled to JavaScript or running on raw Dart VM? If it's compiled to JS you could try to get a profile, it might shed some light on what's going on (Dartium might have profiling support now too ... not sure). Offhand I don't have any guesses about that startup time, as we haven't seen anything like it yet.

Hoa V. Dinh

unread,
Jan 31, 2014, 5:59:30 PM1/31/14
to John Messerly, Rafael Weinstein, Justin Fagnani, polymer-dev, Sigmund Cherem
The issue occurs on both:
in Dart VM and in JS on Chromium.

I’ll try to get some profiling numbers.

I’m wondering if it’s the same issue that we can see right now on http://www.polymer-project.org/:
the menus will appear after 2 sec (1.png vs 2.png).
And it’s probably more dramatic in Spark.

-- 
Hoa V. Dinh

1.png
2.png

Addy Osmani

unread,
Feb 3, 2014, 5:06:37 AM2/3/14
to polym...@googlegroups.com, John Messerly, Rafael Weinstein, Justin Fagnani, Sigmund Cherem
I think the rendering performance of individual Polymer apps/elements is going to hugely vary. For a simple UI element like polymer-ui-accordion, I'm seeing all paints complete in <1s.

If we're looking at the site, I'm seeing it take 3.5s for all rendering to complete, 2.10s for page load and 1.64s for DOMContentLoaded (good chunk of load is the sourcemap though - load is 1.8s without).

It also has some very long animation frames:

Reply all
Reply to author
Forward
0 new messages