Skip to content

Commit ac2b843

Browse files
committed
bench: fix invocations
--- 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 5fee83f commit ac2b843

40 files changed

+42
-401
lines changed

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.10d_blocked_columnmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var order = 'column-major';
4949
*/
5050
function createBenchmark( len, shape, xtype ) {
5151
var x;
52-
var v;
5352

5453
x = discreteUniform( len, 1, 100 );
5554
x = {
@@ -60,14 +59,6 @@ function createBenchmark( len, shape, xtype ) {
6059
'offset': 0,
6160
'order': order
6261
};
63-
v = {
64-
'dtype': xtype,
65-
'data': discreteUniform( 1, 101, 1000 ),
66-
'shape': [],
67-
'strides': [ 0 ],
68-
'offset': 0,
69-
'order': order
70-
};
7162
return benchmark;
7263

7364
/**
@@ -82,7 +73,7 @@ function createBenchmark( len, shape, xtype ) {
8273

8374
b.tic();
8475
for ( i = 0; i < b.iterations; i++ ) {
85-
out = includes( [ x, v ] );
76+
out = includes( x, 101 );
8677
if ( typeof out !== 'boolean' ) {
8778
b.fail( 'should return a boolean' );
8879
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.10d_blocked_rowmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var order = 'row-major';
4949
*/
5050
function createBenchmark( len, shape, xtype ) {
5151
var x;
52-
var v;
5352

5453
x = discreteUniform( len, 1, 100 );
5554
x = {
@@ -60,14 +59,6 @@ function createBenchmark( len, shape, xtype ) {
6059
'offset': 0,
6160
'order': order
6261
};
63-
v = {
64-
'dtype': xtype,
65-
'data': discreteUniform( 1, 101, 1000 ),
66-
'shape': [],
67-
'strides': [ 0 ],
68-
'offset': 0,
69-
'order': order
70-
};
7162
return benchmark;
7263

7364
/**
@@ -82,7 +73,7 @@ function createBenchmark( len, shape, xtype ) {
8273

8374
b.tic();
8475
for ( i = 0; i < b.iterations; i++ ) {
85-
out = includes( [ x, v ] );
76+
out = includes( x, 101 );
8677
if ( typeof out !== 'boolean' ) {
8778
b.fail( 'should return a boolean' );
8879
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.10d_columnmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var order = 'column-major';
4949
*/
5050
function createBenchmark( len, shape, xtype ) {
5151
var x;
52-
var v;
5352

5453
x = discreteUniform( len, 1, 100 );
5554
x = {
@@ -60,14 +59,6 @@ function createBenchmark( len, shape, xtype ) {
6059
'offset': 0,
6160
'order': order
6261
};
63-
v = {
64-
'dtype': xtype,
65-
'data': discreteUniform( 1, 101, 1000 ),
66-
'shape': [],
67-
'strides': [ 0 ],
68-
'offset': 0,
69-
'order': order
70-
};
7162
return benchmark;
7263

7364
/**
@@ -82,7 +73,7 @@ function createBenchmark( len, shape, xtype ) {
8273

8374
b.tic();
8475
for ( i = 0; i < b.iterations; i++ ) {
85-
out = includes( [ x, v ] );
76+
out = includes( x, 101 );
8677
if ( typeof out !== 'boolean' ) {
8778
b.fail( 'should return a boolean' );
8879
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.10d_rowmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var order = 'row-major';
4949
*/
5050
function createBenchmark( len, shape, xtype ) {
5151
var x;
52-
var v;
5352

5453
x = discreteUniform( len, 1, 100 );
5554
x = {
@@ -60,14 +59,6 @@ function createBenchmark( len, shape, xtype ) {
6059
'offset': 0,
6160
'order': order
6261
};
63-
v = {
64-
'dtype': xtype,
65-
'data': discreteUniform( 1, 101, 1000 ),
66-
'shape': [],
67-
'strides': [ 0 ],
68-
'offset': 0,
69-
'order': order
70-
};
7162
return benchmark;
7263

7364
/**
@@ -82,7 +73,7 @@ function createBenchmark( len, shape, xtype ) {
8273

8374
b.tic();
8475
for ( i = 0; i < b.iterations; i++ ) {
85-
out = includes( [ x, v ] );
76+
out = includes( x, 101 );
8677
if ( typeof out !== 'boolean' ) {
8778
b.fail( 'should return a boolean' );
8879
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.11d_columnmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var order = 'column-major';
4949
*/
5050
function createBenchmark( len, shape, xtype ) {
5151
var x;
52-
var v;
5352

5453
x = discreteUniform( len, 1, 100 );
5554
x = {
@@ -60,14 +59,6 @@ function createBenchmark( len, shape, xtype ) {
6059
'offset': 0,
6160
'order': order
6261
};
63-
v = {
64-
'dtype': xtype,
65-
'data': discreteUniform( 1, 101, 1000 ),
66-
'shape': [],
67-
'strides': [ 0 ],
68-
'offset': 0,
69-
'order': order
70-
};
7162
return benchmark;
7263

7364
/**
@@ -82,7 +73,7 @@ function createBenchmark( len, shape, xtype ) {
8273

8374
b.tic();
8475
for ( i = 0; i < b.iterations; i++ ) {
85-
out = includes( [ x, v ] );
76+
out = includes( x, 101 );
8677
if ( typeof out !== 'boolean' ) {
8778
b.fail( 'should return a boolean' );
8879
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.11d_rowmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var order = 'row-major';
4949
*/
5050
function createBenchmark( len, shape, xtype ) {
5151
var x;
52-
var v;
5352

5453
x = discreteUniform( len, 1, 100 );
5554
x = {
@@ -60,14 +59,6 @@ function createBenchmark( len, shape, xtype ) {
6059
'offset': 0,
6160
'order': order
6261
};
63-
v = {
64-
'dtype': xtype,
65-
'data': discreteUniform( 1, 101, 1000 ),
66-
'shape': [],
67-
'strides': [ 0 ],
68-
'offset': 0,
69-
'order': order
70-
};
7162
return benchmark;
7263

7364
/**
@@ -82,7 +73,7 @@ function createBenchmark( len, shape, xtype ) {
8273

8374
b.tic();
8475
for ( i = 0; i < b.iterations; i++ ) {
85-
out = includes( [ x, v ] );
76+
out = includes( x, 101 );
8677
if ( typeof out !== 'boolean' ) {
8778
b.fail( 'should return a boolean' );
8879
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.2d_blocked_columnmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ var order = 'column-major';
5050
*/
5151
function createBenchmark( len, shape, xtype ) {
5252
var x;
53-
var v;
5453

5554
x = discreteUniform( len, 1, 100 );
5655
x = {
@@ -61,14 +60,6 @@ function createBenchmark( len, shape, xtype ) {
6160
'offset': 0,
6261
'order': order
6362
};
64-
v = {
65-
'dtype': xtype,
66-
'data': discreteUniform( 1, 101, 1000 ),
67-
'shape': [],
68-
'strides': [ 0 ],
69-
'offset': 0,
70-
'order': order
71-
};
7263
return benchmark;
7364

7465
/**
@@ -83,7 +74,7 @@ function createBenchmark( len, shape, xtype ) {
8374

8475
b.tic();
8576
for ( i = 0; i < b.iterations; i++ ) {
86-
out = includes( [ x, v ] );
77+
out = includes( x, 101 );
8778
if ( typeof out !== 'boolean' ) {
8879
b.fail( 'should return a boolean' );
8980
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.2d_blocked_rowmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ var order = 'row-major';
5050
*/
5151
function createBenchmark( len, shape, xtype ) {
5252
var x;
53-
var v;
5453

5554
x = discreteUniform( len, 1, 100 );
5655
x = {
@@ -61,14 +60,6 @@ function createBenchmark( len, shape, xtype ) {
6160
'offset': 0,
6261
'order': order
6362
};
64-
v = {
65-
'dtype': xtype,
66-
'data': discreteUniform( 1, 101, 1000 ),
67-
'shape': [],
68-
'strides': [ 0 ],
69-
'offset': 0,
70-
'order': order
71-
};
7263
return benchmark;
7364

7465
/**
@@ -83,7 +74,7 @@ function createBenchmark( len, shape, xtype ) {
8374

8475
b.tic();
8576
for ( i = 0; i < b.iterations; i++ ) {
86-
out = includes( [ x, v ] );
77+
out = includes( x, 101 );
8778
if ( typeof out !== 'boolean' ) {
8879
b.fail( 'should return a boolean' );
8980
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.2d_columnmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ var order = 'column-major';
5050
*/
5151
function createBenchmark( len, shape, xtype ) {
5252
var x;
53-
var v;
5453

5554
x = discreteUniform( len, 1, 100 );
5655
x = {
@@ -61,14 +60,6 @@ function createBenchmark( len, shape, xtype ) {
6160
'offset': 0,
6261
'order': order
6362
};
64-
v = {
65-
'dtype': xtype,
66-
'data': discreteUniform( 1, 101, 1000 ),
67-
'shape': [],
68-
'strides': [ 0 ],
69-
'offset': 0,
70-
'order': order
71-
};
7263
return benchmark;
7364

7465
/**
@@ -83,7 +74,7 @@ function createBenchmark( len, shape, xtype ) {
8374

8475
b.tic();
8576
for ( i = 0; i < b.iterations; i++ ) {
86-
out = includes( [ x, v ] );
77+
out = includes( x, 101 );
8778
if ( typeof out !== 'boolean' ) {
8879
b.fail( 'should return a boolean' );
8980
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.2d_rowmajor.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ var order = 'row-major';
5050
*/
5151
function createBenchmark( len, shape, xtype ) {
5252
var x;
53-
var v;
5453

5554
x = discreteUniform( len, 1, 100 );
5655
x = {
@@ -61,14 +60,6 @@ function createBenchmark( len, shape, xtype ) {
6160
'offset': 0,
6261
'order': order
6362
};
64-
v = {
65-
'dtype': xtype,
66-
'data': discreteUniform( 1, 101, 1000 ),
67-
'shape': [],
68-
'strides': [ 0 ],
69-
'offset': 0,
70-
'order': order
71-
};
7263
return benchmark;
7364

7465
/**
@@ -83,7 +74,7 @@ function createBenchmark( len, shape, xtype ) {
8374

8475
b.tic();
8576
for ( i = 0; i < b.iterations; i++ ) {
86-
out = includes( [ x, v ] );
77+
out = includes( x, 101 );
8778
if ( typeof out !== 'boolean' ) {
8879
b.fail( 'should return a boolean' );
8980
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.2d_rowmajor_accessors.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ function set( buf, idx, value ) {
7474
*/
7575
function createBenchmark( len, shape, xtype ) {
7676
var x;
77-
var v;
7877

7978
x = discreteUniform( len, 1, 100 );
8079
x = {
@@ -87,16 +86,6 @@ function createBenchmark( len, shape, xtype ) {
8786
'accessorProtocol': true,
8887
'accessors': [ get, set ]
8988
};
90-
v = {
91-
'dtype': xtype,
92-
'data': discreteUniform( 1, 101, 1000 ),
93-
'shape': [],
94-
'strides': [ 0 ],
95-
'offset': 0,
96-
'order': order,
97-
'accessorProtocol': true,
98-
'accessors': [ get, set ]
99-
};
10089
return benchmark;
10190

10291
/**
@@ -111,7 +100,7 @@ function createBenchmark( len, shape, xtype ) {
111100

112101
b.tic();
113102
for ( i = 0; i < b.iterations; i++ ) {
114-
out = includes( [ x, v ] );
103+
out = includes( x, 101 );
115104
if ( typeof out !== 'boolean' ) {
116105
b.fail( 'should return a boolean' );
117106
}

lib/node_modules/@stdlib/ndarray/base/includes/benchmark/benchmark.2d_rowmajor_accessors_complex.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,8 @@ function createBenchmark( len, shape, xtype ) {
9090
'accessors': [ get, set ]
9191
};
9292
v = {
93-
'dtype': xtype,
94-
'data': new ( ctors( xtype ) )( discreteUniform( 2, 101, 1000 ) ),
95-
'shape': [],
96-
'strides': [ 0 ],
97-
'offset': 0,
98-
'order': order,
99-
'accessorProtocol': true,
100-
'accessors': [ get, set ]
93+
're': 101,
94+
'im': 102
10195
};
10296
return benchmark;
10397

@@ -113,7 +107,7 @@ function createBenchmark( len, shape, xtype ) {
113107

114108
b.tic();
115109
for ( i = 0; i < b.iterations; i++ ) {
116-
out = includes( [ x, v ] );
110+
out = includes( x, v );
117111
if ( typeof out !== 'boolean' ) {
118112
b.fail( 'should return a boolean' );
119113
}

0 commit comments

Comments
 (0)