Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var format = require( '@stdlib/string/format' );
var EPS = require( '@stdlib/constants/float64/eps' );
var pkg = require( './../package.json' ).name;
var pdf = require( './../lib' );
Expand All @@ -47,7 +48,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = pdf( x[ i % x.length ], x0[ i % x0.length ], gamma[ i % gamma.length ] );

Check warning on line 51 in lib/node_modules/@stdlib/stats/base/dists/cauchy/pdf/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 85. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand All @@ -60,7 +61,7 @@
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s::factory', pkg ), function benchmark( b ) {
var mypdf;
var gamma;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var format = require( '@stdlib/string/format' );
var EPS = require( '@stdlib/constants/float64/eps' );
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
Expand All @@ -39,7 +40,7 @@

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var gamma;
var opts;
var x0;
Expand All @@ -56,7 +57,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = pdf( x[ i % x.length ], x0[ i % x0.length ], gamma[ i % gamma.length ] );

Check warning on line 60 in lib/node_modules/@stdlib/stats/base/dists/cauchy/pdf/benchmark/benchmark.native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 85. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand Down