Skip to content

Commit 71a3394

Browse files
bench: refactor to use string interpolation in array/base/first
PR-URL: #10647 Ref: #8647 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent d558dd6 commit 71a3394

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/array/base/first/benchmark

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/array/base/first/benchmark/benchmark.js

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

@@ -95,7 +96,7 @@ function main() {
9596
len = pow( 10, i );
9697

9798
f = createBenchmark( len );
98-
bench( pkg+':len='+len, f );
99+
bench( format( '%s:len=%d', pkg, len ), f );
99100
}
100101
}
101102

0 commit comments

Comments
 (0)