Skip to content

Commit 83c4323

Browse files
Use format function for benchmark labels
Signed-off-by: Rohit R Bhat <bhatrr2021@gmail.com>
1 parent e7054b7 commit 83c4323

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/array/base/accessor-getter/benchmark

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)