Open Bug 1733471 Opened 3 years ago Updated 2 years ago

[Speedometer] p.createElement function in React-TodoMVC subtest takes 5x longer than Chrome

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows 10
defect

Tracking

()

People

(Reporter: denispal, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [sp3-react-todomvc])

In the react-todomvc test from speedometer, you can see that p.createElement takes a very long time to execute versus in Chrome. This one function is contributing to a lot of the performance difference for this test.

Chrome profile: https://share.firefox.dev/3zWgHBA
Firefox profile: https://share.firefox.dev/39RtYk7

To run it, go to https://browserbench.org/Speedometer2.0/InteractiveRunner.html and only select the React-TodoMVC subtest.

Here's the unminified code.

This same problem seems to also exist in the React-redux suite. As an example, I.createElement() takes 66ms in Firefox and 11ms in Chrome

React-redux profiles:
Firefox: https://share.firefox.dev/39VO6S7
Chrome: https://share.firefox.dev/2Y9vHOZ

Severity: -- → S3
Priority: -- → P3
Whiteboard: [sp3:react-todomvc]
Whiteboard: [sp3:react-todomvc] → [sp3-react-todomvc]
You need to log in before you can comment on or make changes to this bug.