Skip to content

[RFC]: Refactor random number generation in JS benchmarks for stats/base/dists (tracking issue) #4993

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

Open
anandkaranubc opened this issue Jan 31, 2025 · 7 comments
Labels
Benchmarks Pull requests adding or improving benchmarks for measuring performance. difficulty: 1 Low degree of difficulty. Should be straightforward to implement and/or resolve. Good First Issue A good first issue for new contributors! JavaScript Issue involves or relates to JavaScript. RFC Request for comments. Feature requests and proposed changes. Tracking Issue Tracking issue.

Comments

@anandkaranubc
Copy link
Contributor

This RFC proposes improving random number generation in JS benchmarks for remaining packages in stats/base/dists.

@anandkaranubc anandkaranubc added RFC Request for comments. Feature requests and proposed changes. difficulty: 1 Low degree of difficulty. Should be straightforward to implement and/or resolve. Benchmarks Pull requests adding or improving benchmarks for measuring performance. Good First Issue A good first issue for new contributors! Tracking Issue Tracking issue. JavaScript Issue involves or relates to JavaScript. labels Jan 31, 2025
@ahmad-kashkoush
Copy link
Contributor

ahmad-kashkoush commented Jan 31, 2025

Hi @anandkaranubc , I'm interested in closing some of these issues, are these issues aligned with project direction?
I want to assure that they will get merged right away

@anandkaranubc
Copy link
Contributor Author

are these issues aligned with project direction? I want to assure that they will get merged right away

Hii @ahmad-kashkoush, feel free to go ahead with creating PRs targeting these issues. Probably start with one, get it reviewed, and then proceed with creating more.

@saurabhraghuvanshii
Copy link
Contributor

if any one working on any issue please comment in that issue , it will be help full and there will be no 2 Pr for same issue .

@anandkaranubc
Copy link
Contributor Author

For everyone working on the refactoring issues above, can you all please update your PRs to also include the same changes that were made in #5296?

Specifically, the set::* benchmarks in ctor need their isnan checks updated.

Thanks @G4URAV001 for pointing out this bug.

@saurabhraghuvanshii
Copy link
Contributor

For everyone working on the refactoring issues above, can you all please update your PRs to also include the same changes that were made in #5296?

Specifically, the set::* benchmarks in ctor need their isnan checks updated.

Thanks @G4URAV001 for pointing out this bug.

I didn't understand what was the and bug how this solve .

@anandkaranubc
Copy link
Contributor Author

anandkaranubc commented Feb 22, 2025

I didn't understand what was the and bug how this solve .

Because in cases like these (where the random number generation occurs outside the benchmarking loops), specifically in the ctor set::* benchmarks, y is being initialized as an array instead of a value. That is why the isnan(y) check appears to be a bug here.

@saurabhraghuvanshii
Copy link
Contributor

that is , thanks @anandkaranubc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Benchmarks Pull requests adding or improving benchmarks for measuring performance. difficulty: 1 Low degree of difficulty. Should be straightforward to implement and/or resolve. Good First Issue A good first issue for new contributors! JavaScript Issue involves or relates to JavaScript. RFC Request for comments. Feature requests and proposed changes. Tracking Issue Tracking issue.
Projects
None yet
Development

No branches or pull requests

3 participants