Skip to content

Commit f693285

Browse files
bench: refactor to use string interpolation in number/float32/base/assert
PR-URL: #9910 Ref: #8647 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 765abdf commit f693285

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/node_modules/@stdlib/number/float32/base/assert/is-same-value-zero/benchmark/benchmark.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var bench = require( '@stdlib/bench' );
2525
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2626
var toFloat32 = require( '@stdlib/number/float64/base/to-float32' );
2727
var tryRequire = require( '@stdlib/utils/try-require' );
28+
var format = require( '@stdlib/string/format' );
2829
var pkg = require( './../package.json' ).name;
2930

3031

@@ -38,7 +39,7 @@ var opts = {
3839

3940
// MAIN //
4041

41-
bench( pkg+'::native', opts, function benchmark( b ) {
42+
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
4243
var values;
4344
var bool;
4445
var v;

lib/node_modules/@stdlib/number/float32/base/assert/is-same-value/benchmark/benchmark.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var bench = require( '@stdlib/bench' );
2525
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2626
var toFloat32 = require( '@stdlib/number/float64/base/to-float32' );
2727
var tryRequire = require( '@stdlib/utils/try-require' );
28+
var format = require( '@stdlib/string/format' );
2829
var pkg = require( './../package.json' ).name;
2930

3031

@@ -38,7 +39,7 @@ var opts = {
3839

3940
// MAIN //
4041

41-
bench( pkg+'::native', opts, function benchmark( b ) {
42+
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
4243
var values;
4344
var bool;
4445
var v;

0 commit comments

Comments
 (0)