From 193ba8696b147a0fcda3797a6faae732f31e3797 Mon Sep 17 00:00:00 2001 From: Vishal Gaikwad Date: Mon, 5 Jan 2026 13:26:23 +0530 Subject: [PATCH] bench: refactor to use string interpolation in buffer/ctor --- 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/buffer/ctor/benchmark/benchmark.length.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/buffer/ctor/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/buffer/ctor/benchmark/benchmark.length.js index 6b990c393ba6..cd28c70fa670 100644 --- a/lib/node_modules/@stdlib/buffer/ctor/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/buffer/ctor/benchmark/benchmark.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isBuffer = require( '@stdlib/assert/is-buffer' ); var isFunction = require( '@stdlib/assert/is-function' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var ctor = require( './../lib' ); @@ -98,7 +99,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 ); } }