Skip to content

Commit 0df57fb

Browse files
bench: refactor to use string interpolation in array/base/accessor-setter
--- 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 e7054b7 commit 0df57fb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/array/base/accessor-setter/benchmark

lib/node_modules/@stdlib/array/base/accessor-setter/benchmark/benchmark.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var imag = require( '@stdlib/complex/float64/imag' );
3535
var realf = require( '@stdlib/complex/float32/real' );
3636
var imagf = require( '@stdlib/complex/float32/imag' );
3737
var dtype = require( '@stdlib/array/dtype' );
38+
var format = require( '@stdlib/string/format' );
3839
var pkg = require( './../package.json' ).name;
3940
var setter = require( './../lib' );
4041

@@ -72,7 +73,7 @@ bench( pkg, function benchmark( b ) {
7273
b.end();
7374
});
7475

75-
bench( pkg+':dtype=complex128', function benchmark( b ) {
76+
bench( format( '%s:dtype=complex128', pkg ), function benchmark( b ) {
7677
var values;
7778
var arr;
7879
var buf;
@@ -108,7 +109,7 @@ bench( pkg+':dtype=complex128', function benchmark( b ) {
108109
b.end();
109110
});
110111

111-
bench( pkg+':dtype=complex64', function benchmark( b ) {
112+
bench( format( '%s:dtype=complex64', pkg ), function benchmark( b ) {
112113
var values;
113114
var arr;
114115
var buf;

0 commit comments

Comments
 (0)