Skip to content

Commit 2bf7cbf

Browse files
bench: refactor to use string interpolation in array/base/fill-by
PR-URL: stdlib-js#8899 Ref: stdlib-js#8647 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent e823a35 commit 2bf7cbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

@@ -102,7 +103,7 @@ function main() {
102103
len = pow( 10, i );
103104

104105
f = createBenchmark( len );
105-
bench( pkg+':dtype=generic,len='+len, f );
106+
bench( format( '%s:dtype=generic,len=%d', pkg, len ), f );
106107
}
107108
}
108109

0 commit comments

Comments
 (0)