From c9a986f87f1ae7106c1050c89d7c2873dab9bc61 Mon Sep 17 00:00:00 2001 From: JavaTypedScript Date: Tue, 9 Dec 2025 03:54:04 +0000 Subject: [PATCH 1/2] bench: refactor to use string interploation in array/base/fill-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 --- --- .../@stdlib/array/base/fill-by/benchmark/benchmark.length.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/fill-by/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/fill-by/benchmark/benchmark.length.js index 04b8f9381231..3045839adb82 100644 --- a/lib/node_modules/@stdlib/array/base/fill-by/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/fill-by/benchmark/benchmark.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArray = require( '@stdlib/assert/is-array' ); var ones = require( '@stdlib/array/base/ones' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var fillBy = require( './../lib' ); @@ -102,7 +103,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':dtype=generic,len='+len, f ); + bench( format( '%s:dtype=generic,len=%s', pkg, len ), f ); } } From 30c3d0a817f71807d06059702f9351ae13dc37b5 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 8 Dec 2025 20:16:56 -0800 Subject: [PATCH 2/2] bench: use correct specifier Signed-off-by: Athan --- .../@stdlib/array/base/fill-by/benchmark/benchmark.length.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/fill-by/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/fill-by/benchmark/benchmark.length.js index 3045839adb82..4ebd66af2e83 100644 --- a/lib/node_modules/@stdlib/array/base/fill-by/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/fill-by/benchmark/benchmark.length.js @@ -103,7 +103,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( format( '%s:dtype=generic,len=%s', pkg, len ), f ); + bench( format( '%s:dtype=generic,len=%d', pkg, len ), f ); } }