Skip to content

Commit b8beb65

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/array/base/cuany/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 filled = require( '@stdlib/array/base/filled' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var cuany = require( './../lib' );
2930

@@ -88,7 +89,7 @@ function main() {
8889
for ( i = min; i <= max; i++ ) {
8990
len = pow( 10, i );
9091
f = createBenchmark( len );
91-
bench( pkg+':len='+len, f );
92+
bench( format( '%s:len=%d', pkg, len ), f );
9293
}
9394
}
9495

0 commit comments

Comments
 (0)