Skip to content

Commit 6c1a3b7

Browse files
authored
bench: refactor to use string interpolation in tools/snippets
PR-URL: stdlib-js#9626 Ref: stdlib-js#8647 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent ef3792c commit 6c1a3b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/snippets/benchmark/benchmark.length.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 pow = require( '@stdlib/math/base/special/pow' );
25+
var format = require( '@stdlib/string/format' );
2526
var pkg = require( './../package.json' ).name;
2627
var TODO = require( './../lib' );
2728

@@ -91,7 +92,7 @@ function main() {
9192
for ( i = min; i <= max; i++ ) {
9293
len = pow( 10, i );
9394
f = createBenchmark( len );
94-
bench( pkg+':len='+len, f );
95+
bench( format( '%s:len=%d', pkg, len ), f );
9596
}
9697
}
9798

0 commit comments

Comments
 (0)