Closed Bug 1945316 Opened 15 days ago Closed 12 days ago

Testcase generating N sine waves spends infinite time in GraphRunner (and uses some time on parent-process and content-process)

Categories

(Core :: Web Audio, defect)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mayankleoboy1, Unassigned)

References

Details

Attachments

(3 files)

Open attached testcase
Enter 5000 or 50000
Press enter
Dont try this at home with Chrome, or you gonna have a bad time.

5000

50000

I noticed that the graphrunner thread continues to use CPU. Not sure if thats expected. Appears to be a defect, but what do i know.

Ni? from :padenot

Attached file about:support
Flags: needinfo?(padenot)

Interesting testcase, creating a few thousand AudioContext. Usually you'd create a single AudioContext and a few thousand OscillatorNode.

Because of our architecture, it works, but it's really strange code.

Flags: needinfo?(padenot)

500K generating and playing
Nightly: , https://share.firefox.dev/40ZTnDC (50 second to geenrate, infinite time to play)
Chrome: better

500k generating and reloading: https://share.firefox.dev/3WJKv2z (60 second to generate, 75 seconds around cc)

100k
Chrome: https://share.firefox.dev/4aJHu7Y (3.6s)
Nightly: https://share.firefox.dev/3Eq24OU (2.1s)

200k Cleanup: https://share.firefox.dev/4gp8N94

We're spending the CPU as expected in those very heavy test cases, thanks for verifying it doesn't fall apart!

Closing as WORKSFORME.

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: