Skip to content

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

@anandkaranubc

Description

@anandkaranubc
Contributor

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

Sub-issues

Sub-issues

12 of 18 Issues completed

Activity

added
RFCRequest for comments. Feature requests and proposed changes.
difficulty: 1Low degree of difficulty. Should be straightforward to implement and/or resolve.
BenchmarksPull requests adding or improving benchmarks for measuring performance.
on Jan 31, 2025

9 remaining items

ahmad-kashkoush

ahmad-kashkoush commented on Jan 31, 2025

@ahmad-kashkoush
Contributor

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

anandkaranubc commented on Jan 31, 2025

@anandkaranubc
ContributorAuthor

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

saurabhraghuvanshii commented on Feb 5, 2025

@saurabhraghuvanshii
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

anandkaranubc commented on Feb 21, 2025

@anandkaranubc
ContributorAuthor

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

saurabhraghuvanshii commented on Feb 22, 2025

@saurabhraghuvanshii
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

anandkaranubc commented on Feb 22, 2025

@anandkaranubc
ContributorAuthor

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

saurabhraghuvanshii commented on Feb 22, 2025

@saurabhraghuvanshii
Contributor

that is , thanks @anandkaranubc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BenchmarksPull requests adding or improving benchmarks for measuring performance.Good First IssueA good first issue for new contributors!JavaScriptIssue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.Tracking IssueTracking issue.difficulty: 1Low degree of difficulty. Should be straightforward to implement and/or resolve.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ahmad-kashkoush@anandkaranubc@saurabhraghuvanshii

        Issue actions

          [RFC]: Refactor random number generation in JS benchmarks for `stats/base/dists` (tracking issue) · Issue #4993 · stdlib-js/stdlib