Skip to content

Commit 81127f3

Browse files
Shabareesh ShettyShabareesh Shetty
authored andcommitted
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 ddc44fe commit 81127f3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ function createBenchmark( N ) {
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 = floor( pow( pow( 10, i ), 1.0/2.0 ) );
100-
f = createBenchmark( len );
101-
bench( pkg+':size='+(len*len), f );
99+
N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
100+
f = createBenchmark( N );
101+
bench( pkg+':size='+(N*N), f );
102102
}
103103
}
104104

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ function createBenchmark( N ) {
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 = floor( pow( pow( 10, i ), 1.0/2.0 ) );
100-
f = createBenchmark( len );
101-
bench( pkg+':ndarray:size='+(len*len), f );
99+
N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
100+
f = createBenchmark( N );
101+
bench( pkg+':ndarray:size='+(N*N), f );
102102
}
103103
}
104104

0 commit comments

Comments
 (0)