Closed Bug 1784401 Opened 3 years ago Closed 2 years ago

Firefox 20x-50x slower than Chrome on setter and getter of HTMLInputElement.value (Was:Codepen demo can spend a large time in ICU)

Categories

(Core :: DOM: Forms, enhancement)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1842027

People

(Reporter: mayankleoboy1, Unassigned)

Details

Attachments

(2 files)

Go to https://codepen.io/sweaver2112/pen/NWRxKra
Click on the "Shuffle" button

AR: Somewhat slower.
ER: Faster, if possible.

Profile: https://share.firefox.dev/3pbt89w

Attached file about:support

Profiling data seems to spend a lot of time for getter of HTMLInputElement.value (<input type=number>). Moving to DOM

Component: Internationalization → DOM: Forms
Attachment #9289599 - Attachment description: micro benchmark → micro benchmark forsetter and getter
Attachment #9289599 - Attachment description: micro benchmark forsetter and getter → micro benchmark for setter and getter

Original report is getter only. But when using both setter and getter, Gecko is 20x-30x slower than Chrome.

Summary: Codepen demo can spend a large time in ICU → Firefox 20x-50x slower than Chrome on setter and getter of HTMLInputElement.value (Was:Codepen demo can spend a large time in ICU)

Here's a profile, the text input is calling spending its time parsing the input as a number: https://share.firefox.dev/3pfXN5E

We can't avoid localized input unlike <input type=range>. Why Chrome is such faster?

On the attached benchmark:

Chrome: 8ms
Nightly: 650ms (https://share.firefox.dev/42WGCr6)

See Also: → 1842027

With the latest Nightly, we are as fast as Chrome here. https://share.firefox.dev/44ms3yM
For ease of tracking, i will dupe this to bug 1842027

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1842027
Resolution: --- → DUPLICATE
See Also: 1842027
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: