Open Bug 1985815 Opened 1 year ago Updated 1 month ago

Modified demo at https://grelf.net/caves/cavemap.html is 2.2x slower in Firefox (spending time in sin/cos?)

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 2 open bugs, )

Details

Attachments

(1 file)

Attached file testcase.HTML —

Open the attached HTML file (Original unmodified demo is at https://grelf.net/caves/cavemap.html)
I have just made teh wd and ht variables 10x bigger.

Firefox: https://share.firefox.dev/4p2dZFq (8.5s)
Chrome: https://share.firefox.dev/4mVM2O9 (2.7s)

Depends on: 1986239

For the most part this is overhead due to missing inlining. When running in the shell with --small-function-length=300 to ensure isCaveOpen can get inlined, we're about two times faster. We also don't seem to inline Math.round when the output is a Double (bug 1986239).

Blocks: sm-inlining
Severity: -- → N/A
Priority: -- → P3

Profile with latest nightly: https://share.firefox.dev/4oUvIhM (7s)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: