From 2e3feb692e540bf0e12dd023f4f5754c58dc9b15 Mon Sep 17 00:00:00 2001 From: ullasrr Date: Sat, 6 Dec 2025 21:57:55 +0530 Subject: [PATCH] bench: refactor to use string interpolation in array/base/fliplr2d --- 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/fliplr2d/benchmark/benchmark.size.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/fliplr2d/benchmark/benchmark.size.js b/lib/node_modules/@stdlib/array/base/fliplr2d/benchmark/benchmark.size.js index f314da08250c..4dd700e75db8 100644 --- a/lib/node_modules/@stdlib/array/base/fliplr2d/benchmark/benchmark.size.js +++ b/lib/node_modules/@stdlib/array/base/fliplr2d/benchmark/benchmark.size.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var filled2dBy = require( '@stdlib/array/base/filled2d-by' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var fliplr2d = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); sh = [ N, N ]; f = createBenchmark( sh ); - bench( pkg+'::square_matrix:size='+numel( sh ), f ); + bench( format( '%s::square_matrix:size=%d', pkg, numel( sh ) ), f ); } }