Skip to content

Commit ce4eab0

Browse files
fix: updating bench file
1 parent d3f05da commit ce4eab0

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

lib/node_modules/@stdlib/stats/base/dists/bernoulli/quantile/benchmark/benchmark.native.js

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var opts = {
3838

3939
// MAIN //
4040

41-
bench( pkg, opts, function benchmark( b ) {
41+
bench( pkg+'::native', opts, function benchmark( b ) {
4242
var p;
4343
var r;
4444
var y;
@@ -60,29 +60,3 @@ bench( pkg, opts, function benchmark( b ) {
6060
b.pass( 'benchmark finished' );
6161
b.end();
6262
});
63-
64-
bench( pkg+':factory', opts, function benchmark( b ) {
65-
var myquantile;
66-
var p;
67-
var r;
68-
var y;
69-
var i;
70-
71-
p = 0.3;
72-
myquantile = quantile.factory( p );
73-
74-
b.tic();
75-
for ( i = 0; i < b.iterations; i++ ) {
76-
r = randu();
77-
y = myquantile( r );
78-
if ( isnan( y ) ) {
79-
b.fail( 'should not return NaN' );
80-
}
81-
}
82-
b.toc();
83-
if ( isnan( y ) ) {
84-
b.fail( 'should not return NaN' );
85-
}
86-
b.pass( 'benchmark finished' );
87-
b.end();
88-
});

0 commit comments

Comments
 (0)