From 105d23ff7333389de2cf668a165081a56952a323 Mon Sep 17 00:00:00 2001 From: Kate Suraev Date: Fri, 5 Dec 2025 15:32:04 +1100 Subject: [PATCH 1/2] bench: refactor to use string interpolation in `array/base/binary2d` --- 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 --- --- .../@stdlib/array/base/binary2d/benchmark/benchmark.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/binary2d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/binary2d/benchmark/benchmark.js index 24bacc085761..ddaeb17f503e 100644 --- a/lib/node_modules/@stdlib/array/base/binary2d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/binary2d/benchmark/benchmark.js @@ -29,6 +29,7 @@ var add = require( '@stdlib/number/float64/base/add' ); var filled2dBy = require( '@stdlib/array/base/filled2d-by' ); var zeros2d = require( '@stdlib/array/base/zeros2d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var binary2d = require( './../lib' ); @@ -111,7 +112,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); sh = [ N, N ]; f = createBenchmark( sh ); - bench( pkg+'::square_matrix:size='+numel( sh ), f ); + bench( format( '%s::square_matrix:size=%d', pkg, numel( sh) ), f ); } } From b824efa994b7a207761a9f4f5c6e93a330ae28d4 Mon Sep 17 00:00:00 2001 From: Kate Suraev Date: Fri, 5 Dec 2025 15:37:44 +1100 Subject: [PATCH 2/2] fixup! bench: refactor to use string interpolation in `array/base/binary2d` --- 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 --- --- .../@stdlib/array/base/binary2d/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/binary2d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/binary2d/benchmark/benchmark.js index ddaeb17f503e..2f1e985021ba 100644 --- a/lib/node_modules/@stdlib/array/base/binary2d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/binary2d/benchmark/benchmark.js @@ -112,7 +112,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); sh = [ N, N ]; f = createBenchmark( sh ); - bench( format( '%s::square_matrix:size=%d', pkg, numel( sh) ), f ); + bench( format( '%s::square_matrix:size=%d', pkg, numel( sh ) ), f ); } }