From 7f85fe79fa020187ac8f9d514b792fd7a4e8f853 Mon Sep 17 00:00:00 2001 From: JavaTypedScript Date: Tue, 9 Dec 2025 05:15:05 +0000 Subject: [PATCH 1/2] bench: refactor to use string interpolation in array/base/filled2d --- 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/filled2d/benchmark/benchmark.size.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/filled2d/benchmark/benchmark.size.js b/lib/node_modules/@stdlib/array/base/filled2d/benchmark/benchmark.size.js index bb7c5ab9db9e..3c07bc444e14 100644 --- a/lib/node_modules/@stdlib/array/base/filled2d/benchmark/benchmark.size.js +++ b/lib/node_modules/@stdlib/array/base/filled2d/benchmark/benchmark.size.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); 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 format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var filled2d = require( './../lib' ); @@ -89,7 +90,7 @@ function main() { N = floor( sqrt( pow( 10, i ) ) ); f = createBenchmark( N ); - bench( pkg+'::square_matrix:size='+(N*N), f ); + bench( format( '%s::square_matrix:size=%d', pkg, (N*N) ), f ); } } From 747e9f920fed85b3635e4322d9550ede676b5b4a Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Mon, 8 Dec 2025 23:24:24 -0600 Subject: [PATCH 2/2] chore: apply suggestion from code review Signed-off-by: Philipp Burckhardt --- .../@stdlib/array/base/filled2d/benchmark/benchmark.size.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/filled2d/benchmark/benchmark.size.js b/lib/node_modules/@stdlib/array/base/filled2d/benchmark/benchmark.size.js index 3c07bc444e14..963d2caf393d 100644 --- a/lib/node_modules/@stdlib/array/base/filled2d/benchmark/benchmark.size.js +++ b/lib/node_modules/@stdlib/array/base/filled2d/benchmark/benchmark.size.js @@ -90,7 +90,7 @@ function main() { N = floor( sqrt( pow( 10, i ) ) ); f = createBenchmark( N ); - bench( format( '%s::square_matrix:size=%d', pkg, (N*N) ), f ); + bench( format( '%s::square_matrix:size=%d', pkg, N*N ), f ); } }