From 338ef2a4329ba55e367898e3e7d137f6479d88d2 Mon Sep 17 00:00:00 2001 From: Prajjwal Bajpai Date: Thu, 5 Feb 2026 17:54:59 +0530 Subject: [PATCH] bench: refactor to use string interpolation in `lapack/base/crot` --- 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/lapack/base/crot/benchmark/benchmark.js | 3 ++- .../@stdlib/lapack/base/crot/benchmark/benchmark.ndarray.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/lapack/base/crot/benchmark/benchmark.js b/lib/node_modules/@stdlib/lapack/base/crot/benchmark/benchmark.js index e502a0377f71..06af71c49ecd 100644 --- a/lib/node_modules/@stdlib/lapack/base/crot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/lapack/base/crot/benchmark/benchmark.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var crot = require( './../lib/crot.js' ); @@ -107,7 +108,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/lapack/base/crot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/lapack/base/crot/benchmark/benchmark.ndarray.js index e28837bec023..37113e0642ec 100644 --- a/lib/node_modules/@stdlib/lapack/base/crot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/lapack/base/crot/benchmark/benchmark.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var crot = require( './../lib/ndarray.js' ); @@ -107,7 +108,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } }