stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

bench: refactor to use string interpolation in `number/uint32/base/mul`

Open opbot-xd opened this issue 2 weeks ago • 1 comments

Progresses a part of #8647.

Description

What is the purpose of this pull request?

This pull request:

  • Refactors JavaScript benchmarks in number/uint32/base/mul to use string interpolation via @stdlib/string/format instead of string concatenation when specifying benchmark names
  • Adds @stdlib/string/format import to two benchmark files: benchmark.js and benchmark.native.js
  • Replaces string concatenation patterns (pkg+'::inline', pkg+'::native') with format function calls using appropriate format specifiers

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

  • #8647

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

All benchmarks were tested locally using:

make benchmark BENCHMARKS_FILTER=".*/number/uint32/base/mul/.*"

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

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

  • [ ] Yes
  • [x] No

@stdlib-js/reviewers

opbot-xd avatar Dec 10 '25 11:12 opbot-xd

Coverage Report

Package Statements Branches Functions Lines
number/uint32/base/mul $\color{green}227/227$
$\color{green}+100.00%$
$\color{green}5/5$
$\color{green}+100.00%$
$\color{green}2/2$
$\color{green}+100.00%$
$\color{green}227/227$
$\color{green}+100.00%$

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

stdlib-bot avatar Dec 10 '25 11:12 stdlib-bot