Skip to content

Update perf tests for Preact X and enable on master#2158

Merged
JoviDeCroock merged 7 commits into
masterfrom
fix/enable-perf-tests
Nov 29, 2019
Merged

Update perf tests for Preact X and enable on master#2158
JoviDeCroock merged 7 commits into
masterfrom
fix/enable-perf-tests

Conversation

@andrewiggins

@andrewiggins andrewiggins commented Nov 28, 2019

Copy link
Copy Markdown
Member
  • Move performance test into bench folder
  • Update performance testing thresholds to match Preact X
  • Enable running perf tests on all builds to ensure we don't regress

If we start seeing builds flake out, we should probably adjust these thresholds or disable specific flakey tests

@coveralls

coveralls commented Nov 28, 2019

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.1%) to 100.0% when pulling 0e12fad on fix/enable-perf-tests into 2cfba0e on master.

({ ticks, message }) => {
console.log(`PERF: repeat diff: ${message}`);
expect(ticks).to.be.below(2000 * MULTIPLIER);
expect(ticks).to.be.below(3000 * MULTIPLIER);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per @developit, X is a little slower here cuz we no longer recycle DOM nodes

({ ticks, message }) => {
console.log(`PERF: large VTree: ${message}`);
expect(ticks).to.be.below(2000 * MULTIPLIER);
expect(ticks).to.be.below(200 * MULTIPLIER);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both 8 and X are well below 2000 ticks here so adjusting to a more reasonable value

@marvinhagemeister marvinhagemeister left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 👍

@JoviDeCroock JoviDeCroock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely loving this!

@JoviDeCroock JoviDeCroock merged commit 6a1d8ab into master Nov 29, 2019
@JoviDeCroock JoviDeCroock deleted the fix/enable-perf-tests branch November 29, 2019 00:46

@cristianbote cristianbote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants