Skip to content

Commit 7e9cdc5

Browse files
committed
bench(stats/base/ndarray/smskrange): use string format utility
--- 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 e53e179 commit 7e9cdc5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/stats/base/ndarray/smskrange/benchmark

lib/node_modules/@stdlib/stats/base/ndarray/smskrange/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/array/bernoulli' );
2626
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var ndarray = require( '@stdlib/ndarray/base/ctor' );
29+
var format = require( '@stdlib/string/format' );
2930
var pkg = require( './../package.json' ).name;
3031
var smskrange = require( './../lib' );
3132

@@ -111,7 +112,7 @@ function main() {
111112
for ( i = min; i <= max; i++ ) {
112113
len = pow( 10, i );
113114
f = createBenchmark( len );
114-
bench( pkg+':len='+len, f );
115+
bench( format( '%s:len=%d', pkg, len ), f );
115116
}
116117
}
117118

0 commit comments

Comments
 (0)