Skip to content

Commit ec3cca3

Browse files
bench: refactor to use string interpolation in array/bool/benchmark
--- 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 ---
1 parent e57055b commit ec3cca3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/node_modules/@stdlib/array/bool/benchmark/benchmark.at.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
25+
var format = require( '@stdlib/string/format' );
2526
var pkg = require( './../package.json' ).name;
2627
var BooleanArray = require( './../lib' );
2728

2829

2930
// MAIN //
3031

31-
bench( pkg+'::nonnegative_indices:at', function benchmark( b ) {
32+
bench( format( '%s::nonnegative_indices:at', pkg ), function benchmark( b ) {
3233
var arr;
3334
var N;
3435
var v;
@@ -56,7 +57,7 @@ bench( pkg+'::nonnegative_indices:at', function benchmark( b ) {
5657
b.end();
5758
});
5859

59-
bench( pkg+'::negative_indices:at', function benchmark( b ) {
60+
bench( format( '%s::negative_indices:at', pkg ), function benchmark( b ) {
6061
var arr;
6162
var N;
6263
var v;

0 commit comments

Comments
 (0)