Skip to content

Commit 2e3feb6

Browse files
committed
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 ---
1 parent e7fbc24 commit 2e3feb6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/node_modules/@stdlib/array/base/fliplr2d/benchmark/benchmark.size.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' );
2727
var floor = require( '@stdlib/math/base/special/floor' );
2828
var filled2dBy = require( '@stdlib/array/base/filled2d-by' );
2929
var numel = require( '@stdlib/ndarray/base/numel' );
30+
var format = require( '@stdlib/string/format' );
3031
var pkg = require( './../package.json' ).name;
3132
var fliplr2d = require( './../lib' );
3233

@@ -100,7 +101,7 @@ function main() {
100101
N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
101102
sh = [ N, N ];
102103
f = createBenchmark( sh );
103-
bench( pkg+'::square_matrix:size='+numel( sh ), f );
104+
bench( format( '%s::square_matrix:size=%d', pkg, numel( sh ) ), f );
104105
}
105106
}
106107

0 commit comments

Comments
 (0)