Skip to content
Merged
Changes from all commits
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
36 changes: 18 additions & 18 deletions lib/node_modules/@stdlib/stats/ztest2/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
var i;

sigma = stdev( 1.0, 51.0 );
x = new Array( 100 );
for ( i = 0; i < x.length; i++ ) {
x[ i ] = ( randu()*50.0 ) + 1.0;
x = [];
for ( i = 0; i < 100; i++ ) {
x.push( ( randu()*50.0 ) + 1.0 );
}

y = new Array( 120 );
for ( i = 0; i < y.length; i++ ) {
y[ i ] = ( randu()*50.0 ) + 1.0;
y = [];
for ( i = 0; i < 120; i++ ) {
y.push( ( randu()*50.0 ) + 1.0 );
}

b.tic();
Expand All @@ -65,7 +65,7 @@
b.end();
});

bench( pkg+'::one-sided', function benchmark( b ) {

Check warning on line 68 in lib/node_modules/@stdlib/stats/ztest2/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var result;
var sigma;
var opts;
Expand All @@ -74,13 +74,13 @@
var i;

sigma = stdev( 1.0, 51.0 );
x = new Array( 100 );
for ( i = 0; i < x.length; i++ ) {
x[ i ] = ( randu()*50.0 ) + 1.0;
x = [];
for ( i = 0; i < 100; i++ ) {
x.push( ( randu()*50.0 ) + 1.0 );
}
y = new Array( 120 );
for ( i = 0; i < y.length; i++ ) {
y[ i ] = ( randu()*50.0 ) + 1.0;
y = [];
for ( i = 0; i < 120; i++ ) {
y.push( ( randu()*50.0 ) + 1.0 );
}
opts = {
'alternative': 'less'
Expand All @@ -102,7 +102,7 @@
b.end();
});

bench( pkg+':print', function benchmark( b ) {

Check warning on line 105 in lib/node_modules/@stdlib/stats/ztest2/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var digits;
var result;
var output;
Expand All @@ -112,13 +112,13 @@
var i;

sigma = stdev( 1.0, 51.0 );
x = new Array( 100 );
for ( i = 0; i < x.length; i++ ) {
x[ i ] = ( randu()*50.0 ) + 1.0;
x = [];
for ( i = 0; i < 100; i++ ) {
x.push( ( randu()*50.0 ) + 1.0 );
}
y = new Array( 120 );
for ( i = 0; i < y.length; i++ ) {
y[ i ] = ( randu()*50.0 ) + 1.0;
y = [];
for ( i = 0; i < 120; i++ ) {
y.push( ( randu()*50.0 ) + 1.0 );
}
result = ztest2( x, y, sigma, sigma );

Expand Down
Loading