From 23c28f1fe00c4f7293308e6cf78d60d71f2a5ada Mon Sep 17 00:00:00 2001 From: Kate Suraev Date: Fri, 5 Dec 2025 15:04:56 +1100 Subject: [PATCH] bench: refactor to use string interpolation in `array/base/banded/filled2d-by` --- 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/banded/filled2d-by/benchmark/benchmark.size.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/banded/filled2d-by/benchmark/benchmark.size.js b/lib/node_modules/@stdlib/array/base/banded/filled2d-by/benchmark/benchmark.size.js index 20892dac6967..43569a346c71 100644 --- a/lib/node_modules/@stdlib/array/base/banded/filled2d-by/benchmark/benchmark.size.js +++ b/lib/node_modules/@stdlib/array/base/banded/filled2d-by/benchmark/benchmark.size.js @@ -26,6 +26,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var isArrayArray = require( '@stdlib/assert/is-array-array' ); var constantFunction = require( '@stdlib/utils/constant-function' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var filled2dBy = require( './../lib' ); @@ -97,7 +98,7 @@ function main() { N = floor( sqrt( pow( 10, i ) ) ); f = createBenchmark( N, k, k ); - bench( pkg+':ku='+k+',kl='+k+',size='+(N*N), f ); + bench( format( '%s:ku=%d,kl=%d,size=%d', pkg, k, k, N*N ), f ); } }