Skip to content

Commit 114b390

Browse files
committed
bench: update variable naming
--- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 998b584 commit 114b390

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

lib/node_modules/@stdlib/blas/base/dzasum/benchmark/benchmark.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ var options = {
4242
* Creates a benchmark function.
4343
*
4444
* @private
45-
* @param {PositiveInteger} len - array length
45+
* @param {PositiveInteger} N - array length
4646
* @returns {Function} benchmark function
4747
*/
48-
function createBenchmark( len ) {
48+
function createBenchmark( N ) {
4949
var x;
5050

51-
x = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
51+
x = new Complex128Array( uniform( N*2, -100.0, 100.0, options ) );
5252
return benchmark;
5353

5454
/**
@@ -86,19 +86,19 @@ function createBenchmark( len ) {
8686
* @private
8787
*/
8888
function main() {
89-
var len;
9089
var min;
9190
var max;
91+
var N;
9292
var f;
9393
var i;
9494

9595
min = 1; // 10^min
9696
max = 6; // 10^max
9797

9898
for ( i = min; i <= max; i++ ) {
99-
len = pow( 10, i );
100-
f = createBenchmark( len );
101-
bench( pkg+':len='+len, f );
99+
N = pow( 10, i );
100+
f = createBenchmark( N );
101+
bench( pkg+':size='+N, f );
102102
}
103103
}
104104

lib/node_modules/@stdlib/blas/base/dzasum/benchmark/benchmark.ndarray.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ var options = {
4242
* Creates a benchmark function.
4343
*
4444
* @private
45-
* @param {PositiveInteger} len - array length
45+
* @param {PositiveInteger} N - array length
4646
* @returns {Function} benchmark function
4747
*/
48-
function createBenchmark( len ) {
48+
function createBenchmark( N ) {
4949
var x;
5050

51-
x = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
51+
x = new Complex128Array( uniform( N*2, -100.0, 100.0, options ) );
5252
return benchmark;
5353

5454
/**
@@ -86,19 +86,19 @@ function createBenchmark( len ) {
8686
* @private
8787
*/
8888
function main() {
89-
var len;
9089
var min;
9190
var max;
91+
var N;
9292
var f;
9393
var i;
9494

9595
min = 1; // 10^min
9696
max = 6; // 10^max
9797

9898
for ( i = min; i <= max; i++ ) {
99-
len = pow( 10, i );
100-
f = createBenchmark( len );
101-
bench( pkg+':ndarray:len='+len, f );
99+
N = pow( 10, i );
100+
f = createBenchmark( N );
101+
bench( pkg+':ndarray:size='+N, f );
102102
}
103103
}
104104

0 commit comments

Comments
 (0)