Skip to content

Commit 07f9e6e

Browse files
bench: refactor to use string interpolation in array/base/filled2d-by
PR-URL: #8994 Ref: #8647 Reviewed-by: Athan Reines <[email protected]>
1 parent 7d41665 commit 07f9e6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/array/base/filled2d-by/benchmark/benchmark.size.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2626
var sqrt = require( '@stdlib/math/base/special/sqrt' );
2727
var isArrayArray = require( '@stdlib/assert/is-array-array' );
2828
var constantFunction = require( '@stdlib/utils/constant-function' );
29+
var format = require( '@stdlib/string/format' );
2930
var pkg = require( './../package.json' ).name;
3031
var filled2dBy = require( './../lib' );
3132

@@ -93,7 +94,7 @@ function main() {
9394
N = floor( sqrt( pow( 10, i ) ) );
9495

9596
f = createBenchmark( N );
96-
bench( pkg+'::square_matrix:size='+(N*N), f );
97+
bench( format( '%s::square_matrix:size=%d', pkg, N*N ), f );
9798
}
9899
}
99100

0 commit comments

Comments
 (0)