stdlib
stdlib copied to clipboard
bench: refactor to use string interpolation in `number/uint8/base/sub`
Progresses #8647.
Description
What is the purpose of this pull request?
This pull request:
- Refactors JavaScript benchmarks in
number/uint8/base/subto use string interpolation via@stdlib/string/formatinstead of string concatenation when specifying benchmark names - Adds
@stdlib/string/formatimport to two benchmark files:benchmark.jsandbenchmark.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.
No.
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/sub | $\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.