From 2b57e78aef54a4ce3aeeed799099571e1c053f29 Mon Sep 17 00:00:00 2001 From: Vishal Gaikwad Date: Thu, 26 Feb 2026 23:36:36 +0530 Subject: [PATCH] bench: refactor to use string interpolation in blas/base/binary --- 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 --- --- .../strided/base/binary/benchmark/benchmark.accessors.js | 3 ++- .../@stdlib/strided/base/binary/benchmark/benchmark.js | 3 ++- .../base/binary/benchmark/benchmark.ndarray.accessors.js | 3 ++- .../@stdlib/strided/base/binary/benchmark/benchmark.ndarray.js | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.accessors.js b/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.accessors.js index cc362b4b7a27..4f60af423b67 100644 --- a/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.accessors.js +++ b/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.accessors.js @@ -30,6 +30,7 @@ var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var binary = require( './../lib/main.js' ); @@ -129,7 +130,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::accessors:len='+len+',xtype=complex128,ytype=complex128', f ); + bench( format( '%s::accessors:len=%d,xtype=complex128,ytype=complex128', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.js b/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.js index 6d85ed1d981d..26caeb6b6287 100644 --- a/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var filledarray = require( '@stdlib/array/filled' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var add = require( '@stdlib/number/float64/base/add' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var binary = require( './../lib/main.js' ); @@ -120,7 +121,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len, t1, t2, t3 ); - bench( pkg+':len='+len+',xtype='+t1+',ytype='+t2+',otype='+t3, f ); + bench( format( '%s:len=%d,xtype=%s,ytype=%s,otype=%s', pkg, len, t1, t2, t3 ), f ); } } } diff --git a/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.ndarray.accessors.js b/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.ndarray.accessors.js index 16c4dfd40666..ad950ae19918 100644 --- a/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.ndarray.accessors.js +++ b/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.ndarray.accessors.js @@ -30,6 +30,7 @@ var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var binary = require( './../lib/ndarray.js' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::accessors:ndarray:len='+len+',xtype=complex128,ytype=complex128', f ); + bench( format( '%s::accessors:ndarray:len=%d,xtype=complex128,ytype=complex128', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.ndarray.js index 0a35d2937735..e011d54cca2b 100644 --- a/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/strided/base/binary/benchmark/benchmark.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var filledarray = require( '@stdlib/array/filled' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var add = require( '@stdlib/number/float64/base/add' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var binary = require( './../lib/ndarray.js' ); @@ -122,7 +123,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len, t1, t2, t3 ); - bench( pkg+':ndarray:len='+len+',xtype='+t1+',ytype='+t2+',otype='+t3, f ); + bench( format( '%s:ndarray:len=%d,xtype=%s,ytype=%s,otype=%s', pkg, len, t1, t2, t3 ), f ); } } }