Skip to content

Commit dec5ec0

Browse files
committed
Auto-generated commit
1 parent 4bcacab commit dec5ec0

4 files changed

Lines changed: 40 additions & 5 deletions

File tree

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2026-04-19)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`342466e`](https://github.com/stdlib-js/stdlib/commit/342466efa3e8837ecd245ff3dd51ef0c40c52ed6) - **bench:** refactor to use string interpolation in `@stdlib/assert` [(#11399)](https:-/github.com/stdlib-js/stdlib/pull/11399) _(by Karan Anand)_
16+
17+
</details>
18+
19+
</section>
20+
21+
<!-- /.commits -->
22+
23+
<section class="contributors">
24+
25+
### Contributors
26+
27+
A total of 1 person contributed to this release. Thank you to this contributor:
28+
29+
- Karan Anand
30+
31+
</section>
32+
33+
<!-- /.contributors -->
34+
35+
</section>
36+
37+
<!-- /.release -->
38+
539
<section class="release" id="v0.2.3">
640

741
## 0.2.3 (2026-02-07)

benchmark/benchmark.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench-harness' );
2424
var Number = require( '@stdlib/number-ctor' );
2525
var isBoolean = require( '@stdlib/assert-is-boolean' ).isPrimitive;
2626
var pow = require( '@stdlib/math-base-special-pow' );
27+
var format = require( '@stdlib/string-format' );
2728
var pkg = require( './../package.json' ).name;
2829
var isSafeIntegerArray = require( './../lib' );
2930

@@ -50,7 +51,7 @@ function createBenchmark( fcn, len, primitives ) {
5051
}
5152
} else {
5253
for ( i = 0; i < len; i++ ) {
53-
x.push( new Number( 1.0 ) ); // eslint-disable-line no-new-wrappers
54+
x.push( new Number( 1.0 ) );
5455
}
5556
}
5657
return benchmark;
@@ -106,13 +107,13 @@ function main() {
106107
len = pow( 10, i );
107108

108109
f = createBenchmark( isSafeIntegerArray, len, false );
109-
bench( pkg+':len='+len, f );
110+
bench( format( '%s:len=%d', pkg, len ), f );
110111

111112
f = createBenchmark( isSafeIntegerArray.primitives, len, true );
112-
bench( pkg+':primitives:len='+len, f );
113+
bench( format( '%s:primitives:len=%d', pkg, len ), f );
113114

114115
f = createBenchmark( isSafeIntegerArray.objects, len, false );
115-
bench( pkg+':objects:len='+len, f );
116+
bench( format( '%s:objects:len=%d', pkg, len ), f );
116117
}
117118
}
118119

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@stdlib/assert-is-boolean": "^0.2.3",
4646
"@stdlib/math-base-special-pow": "^0.3.1",
4747
"@stdlib/number-ctor": "^0.2.3",
48+
"@stdlib/string-format": "^0.2.3",
4849
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
4950
"istanbul": "^0.4.1",
5051
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",

0 commit comments

Comments
 (0)