Skip to content

Commit e681a88

Browse files
bench: refactor to use string interpolation in nlp
PR-URL: #11605 Reviewed-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 59ef54e commit e681a88

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/node_modules/@stdlib/nlp/expand-acronyms/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
2525
var mobyDick = require( '@stdlib/datasets/moby-dick' );
26+
var format = require( '@stdlib/string/format' );
2627
var pkg = require( './../package.json' ).name;
2728
var expandAcronyms = require( './../lib' );
2829
var ACRONYMS = require( './../lib/acronyms.json' );
@@ -51,7 +52,7 @@ bench( pkg, function benchmark( b ) {
5152
b.end();
5253
});
5354

54-
bench( pkg+'::long_text', function benchmark( b ) {
55+
bench( format( '%s::long_text', pkg ), function benchmark( b ) {
5556
var text;
5657
var str;
5758
var out;

lib/node_modules/@stdlib/nlp/expand-contractions/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
2525
var mobyDick = require( '@stdlib/datasets/moby-dick' );
26+
var format = require( '@stdlib/string/format' );
2627
var pkg = require( './../package.json' ).name;
2728
var expandContractions = require( './../lib' );
2829
var CONTRACTIONS = require( './../lib/contractions.json' );
@@ -51,7 +52,7 @@ bench( pkg, function benchmark( b ) {
5152
b.end();
5253
});
5354

54-
bench( pkg+'::long_text', function benchmark( b ) {
55+
bench( format( '%s::long_text', pkg ), function benchmark( b ) {
5556
var text;
5657
var str;
5758
var out;

0 commit comments

Comments
 (0)