Skip to content

Reduce the react stockcharts steps - #200

Merged
julienw merged 1 commit into
WebKit:mainfrom
mozilla:split-react-stockcharts
Jun 6, 2023
Merged

julienw merged 1 commit into
WebKit:mainfrom
mozilla:split-react-stockcharts

Conversation

@julienw

@julienw julienw commented May 31, 2023 •

Copy link
Copy Markdown
Contributor

#97

There are several goals for this patch:

  • make the workload more realistic
  • make this test faster.

I decided to reduce the amount of events sent for the "pan the chart" step, and cut down the work in the "zoom the chart" step.

Now, for the "pan the chart" step, instead of moving the mouse 1000 times, it's now 50 times.
For the "zoom in" step, instead of 50 times, it's now 15 times.

base branch from #176
deploy preview

Firefox before/after
image
image

Chrome before/after
image
image

Chrome seems to benefit more than Firefox from this change, but we think it's a more realistic workload.
In more details: Chrome benefits a lot from the changes to the "pan the chart" step, but Firefox doesn't. However both benefits similarly for the reduction of the "zoom the chart" step (about 50%). It would be great to know the result for Safari @rniwa.

What do you all think?

@julienw
julienw force-pushed the split-react-stockcharts branch from 25a2c5f to 909517f Compare June 1, 2023 16:03
@rniwa rniwa added the non-trivial change A change that affects benchmark results label Jun 5, 2023
@julienw
julienw merged commit 282e2b1 into WebKit:main Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

non-trivial change A change that affects benchmark results

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants