From 0df57fb1d610186fa0491defee280452f5b7bb4d Mon Sep 17 00:00:00 2001 From: JavaTypedScript Date: Sun, 30 Nov 2025 16:58:02 +0000 Subject: [PATCH] bench: refactor to use string interpolation in array/base/accessor-setter --- 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 --- --- .../array/base/accessor-setter/benchmark/benchmark.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/accessor-setter/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/accessor-setter/benchmark/benchmark.js index 5e955084ae8b..b1a010aef1ed 100644 --- a/lib/node_modules/@stdlib/array/base/accessor-setter/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/accessor-setter/benchmark/benchmark.js @@ -35,6 +35,7 @@ var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); var dtype = require( '@stdlib/array/dtype' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var setter = require( './../lib' ); @@ -72,7 +73,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+':dtype=complex128', function benchmark( b ) { +bench( format( '%s:dtype=complex128', pkg ), function benchmark( b ) { var values; var arr; var buf; @@ -108,7 +109,7 @@ bench( pkg+':dtype=complex128', function benchmark( b ) { b.end(); }); -bench( pkg+':dtype=complex64', function benchmark( b ) { +bench( format( '%s:dtype=complex64', pkg ), function benchmark( b ) { var values; var arr; var buf;