Skip to content

Commit 53fb242

Browse files
authored
bench: refactor to use string interpolation in symbol/ctor
PR-URL: #10555 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent e5af570 commit 53fb242

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/node_modules/@stdlib/symbol/ctor/benchmark/benchmark.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var hasSymbolSupport = require( '@stdlib/assert/has-symbol-support' );
2525
var isSymbol = require( '@stdlib/assert/is-symbol' ).isPrimitive;
26+
var format = require( '@stdlib/string/format' );
2627
var pkg = require( './../package.json' ).name;
2728
var Sym = require( './../lib' );
2829

@@ -36,7 +37,7 @@ var opts = {
3637

3738
// MAIN //
3839

39-
bench( pkg+'::no_description', opts, function benchmark( b ) {
40+
bench( format( '%s::no_description', pkg ), opts, function benchmark( b ) {
4041
var v;
4142
var i;
4243
b.tic();
@@ -54,7 +55,7 @@ bench( pkg+'::no_description', opts, function benchmark( b ) {
5455
b.end();
5556
});
5657

57-
bench( pkg+'::description', opts, function benchmark( b ) {
58+
bench( format( '%s::description', pkg ), opts, function benchmark( b ) {
5859
var v;
5960
var i;
6061
b.tic();

0 commit comments

Comments
 (0)