Skip to content

Commit 6b38032

Browse files
committed
bench: refactor to use string interpolation in blas/ext/base (batch 2/7)
--- 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 49457c5 commit 6b38032

80 files changed

Lines changed: 160 additions & 80 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2828
var sqrt = require( '@stdlib/math/base/special/sqrt' );
2929
var Float64Array = require( '@stdlib/array/float64' );
3030
var dcopy = require( '@stdlib/blas/base/dcopy' );
31+
var format = require( '@stdlib/string/format' );
3132
var pkg = require( './../package.json' ).name;
3233
var dsort2ins = require( './../lib/dsort2ins.js' );
3334

@@ -129,7 +130,7 @@ function main() {
129130
opts = {
130131
'iterations': iter
131132
};
132-
bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f );
133+
bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f );
133134
iter = floor( sqrt( iter ) );
134135
}
135136
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2929
var Float64Array = require( '@stdlib/array/float64' );
3030
var dcopy = require( '@stdlib/blas/base/dcopy' );
3131
var tryRequire = require( '@stdlib/utils/try-require' );
32+
var format = require( '@stdlib/string/format' );
3233
var pkg = require( './../package.json' ).name;
3334

3435

@@ -138,7 +139,7 @@ function main() {
138139
'skip': opts.skip,
139140
'iterations': iter
140141
};
141-
bench( pkg+'::native,mostly_sorted,few_uniques:len='+len, bopts, f );
142+
bench( format( '%s::native,mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f );
142143
iter = floor( pow( iter, 2.0/3.0 ) );
143144
}
144145
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2828
var sqrt = require( '@stdlib/math/base/special/sqrt' );
2929
var Float64Array = require( '@stdlib/array/float64' );
3030
var dcopy = require( '@stdlib/blas/base/dcopy' );
31+
var format = require( '@stdlib/string/format' );
3132
var pkg = require( './../package.json' ).name;
3233
var dsort2ins = require( './../lib/ndarray.js' );
3334

@@ -129,7 +130,7 @@ function main() {
129130
opts = {
130131
'iterations': iter
131132
};
132-
bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f );
133+
bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f );
133134
iter = floor( sqrt( iter ) );
134135
}
135136
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2929
var Float64Array = require( '@stdlib/array/float64' );
3030
var dcopy = require( '@stdlib/blas/base/dcopy' );
3131
var tryRequire = require( '@stdlib/utils/try-require' );
32+
var format = require( '@stdlib/string/format' );
3233
var pkg = require( './../package.json' ).name;
3334

3435

@@ -138,7 +139,7 @@ function main() {
138139
'skip': opts.skip,
139140
'iterations': iter
140141
};
141-
bench( pkg+'::native,mostly_sorted,few_uniques:ndarray:len='+len, bopts, f );
142+
bench( format( '%s::native,mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f );
142143
iter = floor( pow( iter, 2.0/3.0 ) );
143144
}
144145
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2828
var sqrt = require( '@stdlib/math/base/special/sqrt' );
2929
var Float64Array = require( '@stdlib/array/float64' );
3030
var dcopy = require( '@stdlib/blas/base/dcopy' );
31+
var format = require( '@stdlib/string/format' );
3132
var pkg = require( './../package.json' ).name;
3233
var dsort2ins = require( './../lib/dsort2ins.js' );
3334

@@ -120,7 +121,7 @@ function main() {
120121
opts = {
121122
'iterations': iter
122123
};
123-
bench( pkg+'::mostly_sorted,random:len='+len, opts, f );
124+
bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f );
124125
iter = floor( sqrt( iter ) );
125126
}
126127
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' );
3030
var Float64Array = require( '@stdlib/array/float64' );
3131
var dcopy = require( '@stdlib/blas/base/dcopy' );
3232
var tryRequire = require( '@stdlib/utils/try-require' );
33+
var format = require( '@stdlib/string/format' );
3334
var pkg = require( './../package.json' ).name;
3435

3536

@@ -130,7 +131,7 @@ function main() {
130131
'skip': opts.skip,
131132
'iterations': iter
132133
};
133-
bench( pkg+'::native,mostly_sorted,random:len='+len, bopts, f );
134+
bench( format( '%s::native,mostly_sorted,random:len=%d', pkg, len ), bopts, f );
134135
iter = floor( sqrt( iter ) );
135136
}
136137
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2828
var sqrt = require( '@stdlib/math/base/special/sqrt' );
2929
var Float64Array = require( '@stdlib/array/float64' );
3030
var dcopy = require( '@stdlib/blas/base/dcopy' );
31+
var format = require( '@stdlib/string/format' );
3132
var pkg = require( './../package.json' ).name;
3233
var dsort2ins = require( './../lib/ndarray.js' );
3334

@@ -120,7 +121,7 @@ function main() {
120121
opts = {
121122
'iterations': iter
122123
};
123-
bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f );
124+
bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f );
124125
iter = floor( sqrt( iter ) );
125126
}
126127
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' );
3030
var Float64Array = require( '@stdlib/array/float64' );
3131
var dcopy = require( '@stdlib/blas/base/dcopy' );
3232
var tryRequire = require( '@stdlib/utils/try-require' );
33+
var format = require( '@stdlib/string/format' );
3334
var pkg = require( './../package.json' ).name;
3435

3536

@@ -130,7 +131,7 @@ function main() {
130131
'skip': opts.skip,
131132
'iterations': iter
132133
};
133-
bench( pkg+'::native,mostly_sorted,random:ndarray:len='+len, bopts, f );
134+
bench( format( '%s::native,mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f );
134135
iter = floor( sqrt( iter ) );
135136
}
136137
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2828
var sqrt = require( '@stdlib/math/base/special/sqrt' );
2929
var Float64Array = require( '@stdlib/array/float64' );
3030
var dcopy = require( '@stdlib/blas/base/dcopy' );
31+
var format = require( '@stdlib/string/format' );
3132
var pkg = require( './../package.json' ).name;
3233
var dsort2ins = require( './../lib/dsort2ins.js' );
3334

@@ -129,7 +130,7 @@ function main() {
129130
opts = {
130131
'iterations': iter
131132
};
132-
bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f );
133+
bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f );
133134
iter = floor( sqrt( iter ) );
134135
}
135136
}

lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' );
3030
var Float64Array = require( '@stdlib/array/float64' );
3131
var dcopy = require( '@stdlib/blas/base/dcopy' );
3232
var tryRequire = require( '@stdlib/utils/try-require' );
33+
var format = require( '@stdlib/string/format' );
3334
var pkg = require( './../package.json' ).name;
3435

3536

@@ -139,7 +140,7 @@ function main() {
139140
'skip': opts.skip,
140141
'iterations': iter
141142
};
142-
bench( pkg+'::native,reverse_mostly_sorted,few_uniques:len='+len, bopts, f );
143+
bench( format( '%s::native,reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f );
143144
iter = floor( sqrt( iter ) );
144145
}
145146
}

0 commit comments

Comments
 (0)