Skip to content

Conversation

@daksha607
Copy link
Contributor

Resolves a part of #8647.

Description

This pull request refactors the JavaScript benchmark for stats/base/dists/levy/mean to use string interpolation via @stdlib/string/format instead of string concatenation when specifying the benchmark name.

The change preserves the original benchmark name while aligning the benchmark implementation with the guidelines outlined in the RFC.

Related Issues

Does this pull request have any related issues?

#8647

Questions

No.

Other

No.

Checklist

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

I consulted ChatGPT to understand the RFC requirements and stdlib contribution workflow, but the code changes themselves were authored manually.


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Needs Review A pull request which needs code review. Good First PR A pull request resolving a Good First Issue. labels Jan 25, 2026
@stdlib-bot
Copy link
Contributor

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/levy/mean $\color{green}176/176$
$\color{green}+100.00%$
$\color{green}9/9$
$\color{green}+100.00%$
$\color{green}2/2$
$\color{green}+100.00%$
$\color{green}176/176$
$\color{green}+100.00%$

The above coverage report was generated for the changes in this PR.

@kgryte kgryte changed the title bench: refactor to use string interpolation in stats/base/dists/levy/mean bench: refactor to use string interpolation in stats/base/dists/levy/mean Jan 26, 2026
@kgryte kgryte added Benchmarks Pull requests adding or improving benchmarks for measuring performance. and removed Needs Review A pull request which needs code review. labels Jan 26, 2026
@kgryte kgryte added difficulty: 1 Low degree of difficulty. Should be straightforward to implement and/or resolve. review: 5 labels Jan 26, 2026
@kgryte kgryte merged commit 4f42b6a into stdlib-js:develop Jan 26, 2026
123 checks passed
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 PR A pull request resolving a Good First Issue. review: 5 Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants