Skip to content

Commit 3138d95

Browse files
bench: refactor to use string interpolation in array/base/filled-by
PR-URL: #8901 Ref: #8647 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent c377b56 commit 3138d95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/array/base/filled-by/benchmark/benchmark.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' );
2424
var pow = require( '@stdlib/math/base/special/pow' );
2525
var isArray = require( '@stdlib/assert/is-array' );
2626
var constantFunction = require( '@stdlib/utils/constant-function' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var filledBy = require( './../lib' );
2930

@@ -91,7 +92,7 @@ function main() {
9192
len = pow( 10, i );
9293

9394
f = createBenchmark( len );
94-
bench( pkg+':len='+len, f );
95+
bench( format( '%s:len=%d', pkg, len ), f );
9596
}
9697
}
9798

0 commit comments

Comments
 (0)