Skip to content

Commit e7b7521

Browse files
bench: refactor to use string interpolation in array/base/accessor-getter
PR-URL: #8659 Ref: #8647 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent dc36299 commit e7b7521

File tree

1 file changed

+3
-2
lines changed
  • lib/node_modules/@stdlib/array/base/accessor-getter/benchmark

1 file changed

+3
-2
lines changed

lib/node_modules/@stdlib/array/base/accessor-getter/benchmark/benchmark.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var imag = require( '@stdlib/complex/float64/imag' );
3333
var realf = require( '@stdlib/complex/float32/real' );
3434
var imagf = require( '@stdlib/complex/float32/imag' );
3535
var dtype = require( '@stdlib/array/dtype' );
36+
var format = require( '@stdlib/string/format' );
3637
var pkg = require( './../package.json' ).name;
3738
var getter = require( './../lib' );
3839

@@ -70,7 +71,7 @@ bench( pkg, function benchmark( b ) {
7071
b.end();
7172
});
7273

73-
bench( pkg+':dtype=complex128', function benchmark( b ) {
74+
bench( format( '%s:dtype=complex128', pkg ), function benchmark( b ) {
7475
var arr;
7576
var buf;
7677
var get;
@@ -96,7 +97,7 @@ bench( pkg+':dtype=complex128', function benchmark( b ) {
9697
b.end();
9798
});
9899

99-
bench( pkg+':dtype=complex64', function benchmark( b ) {
100+
bench( format( '%s:dtype=complex64', pkg ), function benchmark( b ) {
100101
var arr;
101102
var buf;
102103
var get;

0 commit comments

Comments
 (0)