EmberJS-TodoMVC spends a lot more time in ensureUniqueKey than in V8, due to SetElementMegamorphic
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
People
(Reporter: mstange, Unassigned)
Details
We spend 1945 samples (excluding callees) as opposed to V8's 649 samples in the function ensureUniqueKey in the EmberJS-TodoMVC benchmark.
968 of those samples are spent in SetElementMegamorphic.
V8 spends 135 samples in Builtin:KeyedStoreIC_Megamorphic and 292 samples in v8::internal::Runtime_AddDictionaryProperty.
Profiles (focused on ensureUniqueKey's "JS-only self time"):
Spidermonkey: https://share.firefox.dev/3Zx9Qw1
V8: https://share.firefox.dev/3J0oc0U
To reproduce, run index.js inside https://github.com/mozilla/Speedometer/tree/6e6656a62fd41fd8cfbedefc1df4f05c84e7bff5/resources/todomvc/architecture-examples/emberjs/dist in the JS shell.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 1•3 years ago
|
||
EmberJS has been removed from sp3. Does the issue show up in other tests?
| Reporter | ||
Comment 2•3 years ago
|
||
Potentially, but I'll file new bugs once I find one that's worthwhile to optimize.
Updated•3 years ago
|
Description
•