Skip to content

Commit

Permalink
bench: remove unrelated benchmark
Browse files Browse the repository at this point in the history
Signed-off-by: Gunj Joshi <[email protected]>
  • Loading branch information
gunjjoshi authored Aug 11, 2024
1 parent 7a4424b commit d1cb755
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,3 @@ bench( pkg+'::native', opts, function benchmark( b ) {
b.pass( 'benchmark finished' );
b.end();
});

bench( pkg+'::native,naive', function benchmark( b ) {
var delta;
var z;
var y;
var i;

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
z = randu() * 100.0;
delta = randu() * 100.0;
y = gamma( z ) / gamma( z + delta );
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
b.end();
});

0 comments on commit d1cb755

Please sign in to comment.