Skip to content

Commit c5c014f

Browse files
committed
bench: refactor to use string interpolation in array/base/broadcasted-binary4d
--- 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 4eb9d2a commit c5c014f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/array/base/broadcasted-binary4d/benchmark

lib/node_modules/@stdlib/array/base/broadcasted-binary4d/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ var add = require( '@stdlib/number/float64/base/add' );
2929
var filled4dBy = require( '@stdlib/array/base/filled4d-by' );
3030
var zeros4d = require( '@stdlib/array/base/zeros4d' );
3131
var numel = require( '@stdlib/ndarray/base/numel' );
32+
var format = require( '@stdlib/string/format' );
3233
var pkg = require( './../package.json' ).name;
3334
var bbinary4d = require( './../lib' );
3435

@@ -123,7 +124,7 @@ function main() {
123124
N = floor( pow( pow( 10, i ), 1.0/4.0 ) );
124125
sh = [ N, N, N, N ];
125126
f = createBenchmark( sh );
126-
bench( pkg+'::equidimensional:size='+numel( sh ), f );
127+
bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f );
127128
}
128129
}
129130

0 commit comments

Comments
 (0)