On a JS demo (http://nkunited.de/blog/particles/landscape/SinusLandscape.min.html ) Nightly is slower than Chrome (in certain cases)
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
8.49 MB,
video/mp4
|
Details |
-
Go to http://nkunited.de/blog/particles/landscape/SinusLandscape.min.html
-
Click on "Open Controls" -> General Settings
2.1Increase the "Particle Amount" to maximum
3.Click on Open Controls -> Display settings
Check "Z-sorting"
AR: Nightly is much more slower than Chrome.
Nightly: https://share.firefox.dev/3kf5tps
Chrome: https://share.firefox.dev/3CPhQyZ
Reporter | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Are you sure that Chrome trace was with Z-sorting enabled? In your Nightly profile I see a lot of time is spent sorting an array but I don't see that in your Chrome profile at all. Looking at the code, this sorting only happens if Z-sorting is enabled.
Reporter | ||
Comment 2•1 year ago
|
||
(In reply to Jan de Mooij [:jandem] from comment #1)
Are you sure that Chrome trace was with Z-sorting enabled? In your Nightly profile I see a lot of time is spent sorting an array but I don't see that in your Chrome profile at all. Looking at the code, this sorting only happens if Z-sorting is enabled.
https://share.firefox.dev/3QGREfN
The first 5 seconds are without z-sorting. After that, I enabled z-sorting.
Comment 3•1 year ago
|
||
(In reply to Mayank Bansal from comment #2)
https://share.firefox.dev/3QGREfN
The first 5 seconds are without z-sorting. After that, I enabled z-sorting.
Ah yes, now the sort callback shows up, as "(anonymous)". I suspect this is mostly a sorting thing.
Reporter | ||
Comment 4•2 months ago
|
||
Profile with latest Nightly(that contains fixes from bug 1884360) : https://share.firefox.dev/3TXVLYc
Reporter | ||
Comment 5•24 days ago
|
||
This is what I get on the latest Nightly (which contains fix from bug 1889685 : https://share.firefox.dev/3WoXNlx
Comment 6•23 days ago
|
||
How does performance compare to Chrome now? Eyeballing the profile, we spend a lot less (relative) time sorting now.
Reporter | ||
Comment 7•23 days ago
|
||
Subjectively, Nightly feels slower.
Nightly: https://share.firefox.dev/3JFZZ0o
Chrome: https://share.firefox.dev/3Wm0HaB
Reporter | ||
Comment 8•23 days ago
|
||
Reporter | ||
Updated•23 days ago
|
Comment 9•23 days ago
|
||
One remaining difference is the number of comparator calls: in Nightly that's about 1.2-1.3 million calls per sort call (it varies quite a bit), but with Chrome it's 0.9-0.95 million. So we're doing more work.. V8 uses Timsort so this could be bug 720677, or something else.
Safari has fewer comparator calls than us, but they're pretty similar (they're closer to us than to Chrome).
Reporter | ||
Comment 10•21 days ago
|
||
Profile with fix from bug 1893977: https://share.firefox.dev/3JKuRwJ
Description
•