Skip to content

Commit b0892e4

Browse files
authored
bench: refactor to use string interpolation in blas/ext/to-sortedhp
PR-URL: #10830 Ref: #8647 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 7a0de75 commit b0892e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/node_modules/@stdlib/blas/ext/to-sortedhp/benchmark/benchmark.assign.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var pow = require( '@stdlib/math/base/special/pow' );
2626
var uniform = require( '@stdlib/random/array/uniform' );
2727
var ndarray = require( '@stdlib/ndarray/base/ctor' );
2828
var zeros = require( '@stdlib/ndarray/zeros' );
29+
var format = require( '@stdlib/string/format' );
2930
var pkg = require( './../package.json' ).name;
3031
var assign = require( './../lib/assign.js' );
3132

@@ -105,7 +106,7 @@ function main() {
105106
for ( i = min; i <= max; i++ ) {
106107
len = pow( 10, i );
107108
f = createBenchmark( len );
108-
bench( pkg+':assign:dtype='+options.dtype+',len='+len, f );
109+
bench( format( '%s:assign:dtype=%s,len=%d', pkg, options.dtype, len ), f );
109110
}
110111
}
111112

lib/node_modules/@stdlib/blas/ext/to-sortedhp/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 toSortedhp = 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)