From 7684fc7bb82380545e5c50664d6ae5380643909a Mon Sep 17 00:00:00 2001 From: Sumithraju Date: Tue, 10 Mar 2026 23:05:26 +0530 Subject: [PATCH] bench: refactor to use string interpolation in utils/some Refactor benchmark to use `@stdlib/string/format` for benchmark name construction instead of string concatenation. --- lib/node_modules/@stdlib/utils/some/benchmark/benchmark.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/utils/some/benchmark/benchmark.js b/lib/node_modules/@stdlib/utils/some/benchmark/benchmark.js index dca7c0edc6cb..0a9c3da53987 100644 --- a/lib/node_modules/@stdlib/utils/some/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/utils/some/benchmark/benchmark.js @@ -22,6 +22,7 @@ var bench = require( '@stdlib/bench' ); var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var some = require( './../lib' ); @@ -49,7 +50,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+'::loop', function benchmark( b ) { +bench( format( '%s::loop', pkg ), function benchmark( b ) { var total; var count; var bool;