Skip to content

Commit 117fa4e

Browse files
authored
bench: refactor to use string interpolation in blas/ext/sorthp
PR-URL: #10828 Ref: #8647 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent e5fc67c commit 117fa4e

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/blas/ext/sorthp/benchmark

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/blas/ext/sorthp/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
2525
var pow = require( '@stdlib/math/base/special/pow' );
2626
var uniform = require( '@stdlib/random/array/uniform' );
2727
var ndarray = require( '@stdlib/ndarray/base/ctor' );
28+
var format = require( '@stdlib/string/format' );
2829
var pkg = require( './../package.json' ).name;
2930
var sorthp = require( './../lib' );
3031

@@ -98,7 +99,7 @@ function main() {
9899
for ( i = min; i <= max; i++ ) {
99100
len = pow( 10, i );
100101
f = createBenchmark( len );
101-
bench( pkg+':dtype='+options.dtype+',len='+len, f );
102+
bench( format( '%s:dtype=%s,len=%d', pkg, options.dtype, len ), f );
102103
}
103104
}
104105

0 commit comments

Comments
 (0)