wasmboy icon indicating copy to clipboard operation
wasmboy copied to clipboard

Firefox Benchmark TypeScript FPS wrong / halved?

Open vjancik opened this issue 6 years ago • 3 comments

It looks like Firefox thinks it ran 5000 frames, despite 2500 being specified, then the resultant FPS for TS and TS + Clojure looks about half of that on Chrome.

That or JS execution on Firefox really is half as fast as on Chrome?

FirefoxPerf ChromePerf

vjancik avatar Dec 01 '19 15:12 vjancik

@vjancik Hello! Thank you for the issue! 😄

So I went ahead and tested this and got the following:

FireFox:

Screen Shot 2019-12-02 at 11 26 47 AM

Chrome:

Screen Shot 2019-12-02 at 11 26 30 AM

So I got it so that they both run the correct number of frames? Did you perhaps change it to 5000, and then rerun again? And what operating system are you using? 🤔

Thank you very much! 😄

torch2424 avatar Dec 02 '19 19:12 torch2424

The OS is in the screenshot. But the number of frames isn't necessarily the issue. The issue is that the JS performance on Firefox shouldn't be 50% of that on Chrome? Unless this is a task that Firefox just has a really hard time optimizing for?

vjancik avatar Dec 06 '19 15:12 vjancik

Ah so yes! Firefox did have a hard time optimizing for this, I ended up getting an issue / some outreach from some awesome folks from Mozilla in #216

I know the bug was fixed (both on my end and theirs) but it may still have something to do with that? 🤔

If I may ask, do you know another benchmark of Chrome vs. Firefox performance I can look into? 😀

Thanks again! Looking forward to looking deeper into this!

torch2424 avatar Dec 10 '19 02:12 torch2424