Skip to content

Commit d866858

Browse files
bench: refactor to use string interpolation in array/uint8
PR-URL: #9518 Ref: #8647 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 932f042 commit d866858

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/array/uint8/benchmark/benchmark.every.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var pow = require( '@stdlib/math/base/special/pow' );
2525
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
26+
var format = require( '@stdlib/string/format' );
2627
var pkg = require( './../package.json' ).name;
2728
var Uint8Array = require( './../lib' );
2829

@@ -98,7 +99,7 @@ function main() {
9899
for ( i = min; i <= max; i++ ) {
99100
len = pow( 10, i );
100101
f = createBenchmark( len );
101-
bench( pkg+':every:len='+len, f );
102+
bench( format( '%s:every:len=%d', pkg, len ), f );
102103
}
103104
}
104105

0 commit comments

Comments
 (0)