From b4296a159c5fe291688eb7ec9bca571d09fb68d0 Mon Sep 17 00:00:00 2001 From: Karan Anand Date: Sun, 19 Apr 2026 12:16:00 -0400 Subject: [PATCH] bench: refactor to use string interpolation in `@stdlib/repl` --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/repl/benchmark/benchmark.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/repl/benchmark/benchmark.js b/lib/node_modules/@stdlib/repl/benchmark/benchmark.js index 6ff484294a64..fdf61e394889 100644 --- a/lib/node_modules/@stdlib/repl/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/repl/benchmark/benchmark.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var inspectSinkStream = require( '@stdlib/streams/node/inspect-sink' ); var randu = require( '@stdlib/random/streams/randu' ); +var format = require( '@stdlib/string/format' ); var noop = require( '@stdlib/utils/noop' ); var pkg = require( './../package.json' ).name; var REPL = require( './../lib' ); @@ -30,7 +31,7 @@ var REPL = require( './../lib' ); // MAIN // -bench( pkg+'::new', function benchmark( b ) { +bench( format( '%s::new', pkg ), function benchmark( b ) { var sopts; var opts; var r; @@ -60,7 +61,7 @@ bench( pkg+'::new', function benchmark( b ) { b.end(); }); -bench( pkg+'::no_new', function benchmark( b ) { +bench( format( '%s::no_new', pkg ), function benchmark( b ) { var sopts; var repl; var opts;