Skip to content

Commit e61d351

Browse files
authored
bench: refactor to use string interpolation in array/base/binary5d
PR-URL: #8805 Ref: #8647 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent a2b58c3 commit e61d351

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/array/base/binary5d/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 filled5dBy = require( '@stdlib/array/base/filled5d-by' );
3030
var zeros5d = require( '@stdlib/array/base/zeros5d' );
3131
var numel = require( '@stdlib/ndarray/base/numel' );
32+
var format = require( '@stdlib/string/format' );
3233
var pkg = require( './../package.json' ).name;
3334
var binary5d = require( './../lib' );
3435

@@ -120,7 +121,7 @@ function main() {
120121
N = floor( pow( pow( 10, i ), 1.0/5.0 ) );
121122
sh = [ N, N, N, N, N ];
122123
f = createBenchmark( sh );
123-
bench( pkg+'::equidimensional:size='+numel( sh ), f );
124+
bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f );
124125
}
125126
}
126127

0 commit comments

Comments
 (0)