stdlib
stdlib copied to clipboard
bench: refactor to use string interpolation in `number/uint8/base/identity`
Progresses #8647.
Description
What is the purpose of this pull request?
This pull request:
- Refactors JavaScript benchmarks in
number/uint8/base/identityto use string interpolation via@stdlib/string/formatinstead of string concatenation when specifying benchmark names - Adds
@stdlib/string/formatimport tobenchmark.native.js - Replaces string concatenation pattern (
pkg+'::native') with format function call using appropriate format specifier
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/uint8/base/identity/.*"
Checklist
Please ensure the following tasks are completed before submitting this pull request.
- [x] Read, understood, and followed the contributing guidelines.
AI Assistance
When authoring the changes proposed in this PR, did you use any kind of AI assistance?
- [ ] Yes
- [x] No
@stdlib-js/reviewers
Coverage Report
| Package | Statements | Branches | Functions | Lines |
|---|---|---|---|---|
| number/uint8/base/identity | $\color{green}157/157$ $\color{green}+100.00%$ |
$\color{green}5/5$ $\color{green}+100.00%$ |
$\color{green}2/2$ $\color{green}+100.00%$ |
$\color{green}157/157$ $\color{green}+100.00%$ |
The above coverage report was generated for the changes in this PR.