From de9d89b4844081e3b902231b0d2df0d7af809b8c Mon Sep 17 00:00:00 2001 From: JavaTypedScript Date: Tue, 9 Dec 2025 04:02:59 +0000 Subject: [PATCH 1/2] bench: refactor to use string interploation in array/base/filled --- 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/filled/benchmark/benchmark.length.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/filled/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/filled/benchmark/benchmark.length.js index d004af28a925..b2b351c1b218 100644 --- a/lib/node_modules/@stdlib/array/base/filled/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/filled/benchmark/benchmark.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var filled = require( './../lib' ); @@ -87,7 +88,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%s', pkg, len ), f ); } } From cb21497f59ead5b608636a8970da6a51515b9f6f Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 8 Dec 2025 20:16:32 -0800 Subject: [PATCH 2/2] bench: use correct specifier Signed-off-by: Athan --- .../@stdlib/array/base/filled/benchmark/benchmark.length.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/filled/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/filled/benchmark/benchmark.length.js index b2b351c1b218..d6b2a6cbb63a 100644 --- a/lib/node_modules/@stdlib/array/base/filled/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/filled/benchmark/benchmark.length.js @@ -88,7 +88,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( format( '%s:len=%s', pkg, len ), f ); + bench( format( '%s:len=%d', pkg, len ), f ); } }