Skip to content

Commit 296dfd1

Browse files
authored
bench: use string interpolation in stats/base/ndarray/dcumaxabs
PR-URL: #10877 Ref: #8647 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 6aae9eb commit 296dfd1

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/ndarray/dcumaxabs/benchmark

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/stats/base/ndarray/dcumaxabs/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var uniform = require( '@stdlib/random/array/uniform' );
25+
var format = require( '@stdlib/string/format' );
2526
var zeros = require( '@stdlib/array/zeros' );
2627
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2728
var pow = require( '@stdlib/math/base/special/pow' );
@@ -107,7 +108,7 @@ function main() {
107108
for ( i = min; i <= max; i++ ) {
108109
len = pow( 10, i );
109110
f = createBenchmark( len );
110-
bench( pkg+':len='+len, f );
111+
bench( format( '%s:len=%d', pkg, len ), f );
111112
}
112113
}
113114

0 commit comments

Comments
 (0)