Skip to content

Commit 9323c1e

Browse files
committed
bench: use @stdlib/string/format in @stdlib/string/from-code-point
1 parent cf26f99 commit 9323c1e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/node_modules/@stdlib/string/from-code-point/benchmark/benchmark.apply.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' );
2525
var floor = require( '@stdlib/math/base/special/floor' );
2626
var pow = require( '@stdlib/math/base/special/pow' );
2727
var UNICODE_MAX = require( '@stdlib/constants/unicode/max' );
28+
var format = require( '@stdlib/string/format' );
2829
var pkg = require( './../package.json' ).name;
2930
var fromCodePoint = require( './../lib' );
3031

@@ -105,10 +106,10 @@ function main() {
105106
len = pow( 10, i );
106107

107108
f = createBenchmark( fromCodePoint, len );
108-
bench( pkg+'::apply:len='+len, f );
109+
bench( format( '%s::apply:len=%d', pkg, len ), f );
109110

110111
f = createBenchmark( String.fromCodePoint, len ); // eslint-disable-line n/no-unsupported-features/es-builtins, n/no-unsupported-features/es-syntax
111-
bench( pkg+'::apply,built-in:len='+len, opts, f );
112+
bench( format( '%s::apply,built-in:len=%d', pkg, len ), opts, f );
112113
}
113114
}
114115

0 commit comments

Comments
 (0)