Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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
---
  • Loading branch information
ShabiShett07 committed Jul 7, 2025
commit 114b390533cd208b1da508bf571461c2e62ff958
14 changes: 7 additions & 7 deletions lib/node_modules/@stdlib/blas/base/dzasum/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ var options = {
* Creates a benchmark function.
*
* @private
* @param {PositiveInteger} len - array length
* @param {PositiveInteger} N - array length
* @returns {Function} benchmark function
*/
function createBenchmark( len ) {
function createBenchmark( N ) {
var x;

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

/**
Expand Down Expand Up @@ -86,19 +86,19 @@ function createBenchmark( len ) {
* @private
*/
function main() {
var len;
var min;
var max;
var N;
var f;
var i;

min = 1; // 10^min
max = 6; // 10^max

for ( i = min; i <= max; i++ ) {
len = pow( 10, i );
f = createBenchmark( len );
bench( pkg+':len='+len, f );
N = pow( 10, i );
f = createBenchmark( N );
bench( pkg+':size='+N, f );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ var options = {
* Creates a benchmark function.
*
* @private
* @param {PositiveInteger} len - array length
* @param {PositiveInteger} N - array length
* @returns {Function} benchmark function
*/
function createBenchmark( len ) {
function createBenchmark( N ) {
var x;

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

/**
Expand Down Expand Up @@ -86,19 +86,19 @@ function createBenchmark( len ) {
* @private
*/
function main() {
var len;
var min;
var max;
var N;
var f;
var i;

min = 1; // 10^min
max = 6; // 10^max

for ( i = min; i <= max; i++ ) {
len = pow( 10, i );
f = createBenchmark( len );
bench( pkg+':ndarray:len='+len, f );
N = pow( 10, i );
f = createBenchmark( N );
bench( pkg+':ndarray:size='+N, f );
}
}

Expand Down