Skip to content

Commit b7e39fd

Browse files
authored
bench: refactor to use string interpolation in array/base/binary2d
PR-URL: #8802 Ref: #8647 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 493f0c2 commit b7e39fd

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ var add = require( '@stdlib/number/float64/base/add' );
2929
var filled2dBy = require( '@stdlib/array/base/filled2d-by' );
3030
var zeros2d = require( '@stdlib/array/base/zeros2d' );
3131
var numel = require( '@stdlib/ndarray/base/numel' );
32+
var format = require( '@stdlib/string/format' );
3233
var pkg = require( './../package.json' ).name;
3334
var binary2d = require( './../lib' );
3435

@@ -111,7 +112,7 @@ function main() {
111112
N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
112113
sh = [ N, N ];
113114
f = createBenchmark( sh );
114-
bench( pkg+'::square_matrix:size='+numel( sh ), f );
115+
bench( format( '%s::square_matrix:size=%d', pkg, numel( sh ) ), f );
115116
}
116117
}
117118

0 commit comments

Comments
 (0)