Skip to content

Commit c695d88

Browse files
bench: refactor to use string interpolation in array/base/broadcasted-quinary2d
PR-URL: #10438 Ref: #8647 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 6564170 commit c695d88

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/array/base/broadcasted-quinary2d/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2828
var filled2dBy = require( '@stdlib/array/base/filled2d-by' );
2929
var zeros2d = require( '@stdlib/array/base/zeros2d' );
3030
var numel = require( '@stdlib/ndarray/base/numel' );
31+
var format = require( '@stdlib/string/format' );
3132
var pkg = require( './../package.json' ).name;
3233
var bquinary2d = require( './../lib' );
3334

@@ -140,7 +141,7 @@ function main() {
140141
N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
141142
sh = [ N, N ];
142143
f = createBenchmark( sh );
143-
bench( pkg+'::square_matrix:size='+numel( sh ), f );
144+
bench( format( '%s::square_matrix:size=%d', pkg, numel( sh ) ), f );
144145
}
145146
}
146147

0 commit comments

Comments
 (0)