Skip to content

Commit 9836337

Browse files
authored
bench: refactor to use string interpolation in array/base/bifurcate-indices
PR-URL: #8851 Ref: #8647 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent b8beb65 commit 9836337

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/array/base/bifurcate-indices/benchmark/benchmark.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' );
2525
var isArrayArray = require( '@stdlib/assert/is-array-array' );
2626
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2727
var zeroTo = require( '@stdlib/array/base/zero-to' );
28+
var format = require( '@stdlib/string/format' );
2829
var pkg = require( './../package.json' ).name;
2930
var bifurcateIndices = require( './../lib' );
3031

@@ -97,7 +98,7 @@ function main() {
9798
len = pow( 10, i );
9899

99100
f = createBenchmark( len );
100-
bench( pkg+':len='+len, f );
101+
bench( format( '%s:len=%d', pkg, len ), f );
101102
}
102103
}
103104

0 commit comments

Comments
 (0)