Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert: refactor to avoid unsafe array iteration #36754

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Jan 3, 2021

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@aduh95 aduh95 added assert Issues and PRs related to the assert subsystem. needs-benchmark-ci PR that need a benchmark CI run. labels Jan 3, 2021
@aduh95

This comment has been minimized.

@mscdex

This comment has been minimized.

@aduh95

This comment has been minimized.

@aduh95

This comment has been minimized.

@aduh95 aduh95 removed the needs-benchmark-ci PR that need a benchmark CI run. label Jan 3, 2021
@aduh95

This comment has been minimized.

@aduh95 aduh95 added the needs-benchmark-ci PR that need a benchmark CI run. label Jan 3, 2021
@PoojaDurgad PoojaDurgad added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 4, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 4, 2021
@aduh95
Copy link
Contributor Author

aduh95 commented Jan 4, 2021

These changes come with some perf regressions:

                                                   confidence improvement accuracy (*)    (**)   (***)
 assert/ok.js n=100000                                    ***     -6.77 %       ±3.69%  ±4.92%  ±6.44%
 assert/throws.js method='doesNotThrow' n=10000           ***    -14.90 %       ±5.67%  ±7.56%  ±9.86%

This may or may not be considered an acceptable trade-off.

@aduh95 aduh95 added review wanted PRs that need reviews. and removed needs-benchmark-ci PR that need a benchmark CI run. labels Jan 9, 2021
@aduh95
Copy link
Contributor Author

aduh95 commented Jan 21, 2021

#37005 should help solve the perf issue.

EDIT: Nope, it doesn't help.

@aduh95 aduh95 added the blocked PRs that are blocked by other issues or PRs. label Jan 21, 2021
@aduh95 aduh95 removed the blocked PRs that are blocked by other issues or PRs. label Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert Issues and PRs related to the assert subsystem. review wanted PRs that need reviews.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants