Skip to content

Commit ecf4b7c

Browse files
authored
bench: refactor to use string interpolation in assert/is-almost-equal-complex64array
PR-URL: #9874 Ref: #8647 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 9342bfc commit ecf4b7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/assert/is-almost-equal-complex64array/benchmark/benchmark.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2525
var pow = require( '@stdlib/math/base/special/pow' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var Complex64Array = require( '@stdlib/array/complex64' );
28+
var format = require( '@stdlib/string/format' );
2829
var pkg = require( './../package.json' ).name;
2930
var isAlmostEqualComplex64Array = require( './../lib' );
3031

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

0 commit comments

Comments
 (0)