Skip to content

Commit 45e4ab4

Browse files
authored
bench: refactor to use string interpolation in number/uint8/base/add
PR-URL: #8942 Ref: #8647 Reviewed-by: Athan Reines <[email protected]>
1 parent 1a8cc79 commit 45e4ab4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/node_modules/@stdlib/number/uint8/base/add/benchmark/benchmark.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 discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
25+
var format = require( '@stdlib/string/format' );
2526
var pkg = require( './../package.json' ).name;
2627
var add = require( './../lib' );
2728

@@ -52,7 +53,7 @@ bench( pkg, function benchmark( b ) {
5253
b.end();
5354
});
5455

55-
bench( pkg+'::inline', function benchmark( b ) {
56+
bench( format( '%s::inline', pkg ), function benchmark( b ) {
5657
var x;
5758
var y;
5859
var i;

lib/node_modules/@stdlib/number/uint8/base/add/benchmark/benchmark.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2626
var tryRequire = require( '@stdlib/utils/try-require' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829

2930

@@ -37,7 +38,7 @@ var opts = {
3738

3839
// MAIN //
3940

40-
bench( pkg+'::native', opts, function benchmark( b ) {
41+
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
4142
var x;
4243
var y;
4344
var i;

0 commit comments

Comments
 (0)