Skip to content

Commit 22c9680

Browse files
bench: refactor to use string interpolation in lapack/base/zrot
--- 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 baaed47 commit 22c9680

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/node_modules/@stdlib/lapack/base/zrot/benchmark/benchmark.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 Complex128Array = require( '@stdlib/array/complex128' );
2828
var Complex128 = require( '@stdlib/complex/float64/ctor' );
2929
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
30+
var format = require( '@stdlib/string/format' );
3031
var pkg = require( './../package.json' ).name;
3132
var zrot = require( './../lib/zrot.js' );
3233

@@ -107,7 +108,7 @@ function main() {
107108
for ( i = min; i <= max; i++ ) {
108109
len = pow( 10, i );
109110
f = createBenchmark( len );
110-
bench( pkg+':len='+len, f );
111+
bench( format( '%s:len=%d', pkg, len ), f );
111112
}
112113
}
113114

lib/node_modules/@stdlib/lapack/base/zrot/benchmark/benchmark.ndarray.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 Complex128Array = require( '@stdlib/array/complex128' );
2828
var Complex128 = require( '@stdlib/complex/float64/ctor' );
2929
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
30+
var format = require( '@stdlib/string/format' );
3031
var pkg = require( './../package.json' ).name;
3132
var zrot = require( './../lib/ndarray.js' );
3233

@@ -107,7 +108,7 @@ function main() {
107108
for ( i = min; i <= max; i++ ) {
108109
len = pow( 10, i );
109110
f = createBenchmark( len );
110-
bench( pkg+':ndarray:len='+len, f );
111+
bench( format( '%s:ndarray:len=%d', pkg, len ), f );
111112
}
112113
}
113114

0 commit comments

Comments
 (0)