Skip to content

Refactor test callbacks into TestInvoker class. - #164

Merged
rniwa merged 1 commit into
mainfrom
refactor-test-callbacks
May 24, 2023
Merged

rniwa merged 1 commit into
mainfrom
refactor-test-callbacks

Conversation

@rniwa

@rniwa rniwa commented May 19, 2023

Copy link
Copy Markdown
Member

This class abstracts away two nested setTimeout calls and requestAnimationFrame.

@rniwa
rniwa force-pushed the refactor-test-callbacks branch 2 times, most recently from d15a210 to 509bff2 Compare May 19, 2023 07:45
@rniwa rniwa added the non-trivial change A change that affects benchmark results label May 19, 2023
@rniwa

rniwa commented May 19, 2023

Copy link
Copy Markdown
Member Author

test-invoker-results.zip

Safari 16.3

Before
563 ± 23
553 ± 26
559 ± 33

After
542 ± 29
546 ± 26
549 ± 31

Chrome 113.0.5672.126

Before
765 ± 18
776 ± 17
772 ± 23

After
766 ± 11
765 ± 24
765 ± 18

Firefox 113.0.1

Before
509 ± 18
515 ± 11
518 ± 6.5

After
501 ± 27
509 ± 13
515 ± 8.3

Comment thread tests/benchmark-runner-tests.mjs Outdated
describe("Test", () => {
describe("_runTestAndRecordResults", () => {
let _runTestSpy;
let peformanceMarkSpy;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

performanceMarkSpy
(I know, the existing code has also peformance)

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.

Good point. Will fix.

@rniwa
rniwa force-pushed the refactor-test-callbacks branch 5 times, most recently from b506860 to 3e306f8 Compare May 24, 2023 07:04
This class abstracts away two nested setTimeout calls and requestAnimationFrame.
@rniwa
rniwa force-pushed the refactor-test-callbacks branch from 3e306f8 to 0f3f850 Compare May 24, 2023 07:10
@rniwa

rniwa commented May 24, 2023 •

Copy link
Copy Markdown
Member Author

refactor-test-callback-results.zip

Safari 16.4 (18615.1.26.11.23)

Before
548 ± 23
537 ± 26
539 ± 23

After
543 ± 27
541 ± 27
550 ± 29

Firefox 113.0.2

Before
495 ± 8.9
499 ± 7.6
502 ± 7.2

After
492 ± 11
496 ± 11
499 ± 9.5

Chrome 113.0.5672.126

Before
743 ± 17
747 ± 20
714 ± 15

After
733 ± 30
731 ± 16
731 ± 14

@rniwa
rniwa merged commit 19184dc into main May 24, 2023
@rniwa
rniwa deleted the refactor-test-callbacks branch May 24, 2023 18:16
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.

3 participants