Skip to content

Commit 0c5e5d9

Browse files
Update benchmark.js
resolved copy-paste error Signed-off-by: Harsh Mathur <[email protected]>
1 parent de17576 commit 0c5e5d9

File tree

1 file changed

+0
-18
lines changed
  • lib/node_modules/@stdlib/math/base/special/lcmf/benchmark

1 file changed

+0
-18
lines changed

lib/node_modules/@stdlib/math/base/special/lcmf/benchmark/benchmark.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,3 @@ bench( pkg, function benchmark( b ) {
8888
b.pass( 'benchmark finished' );
8989
b.end();
9090
});
91-
92-
x = randu( 100, 0, 50 );
93-
y = randu( 100, 0, 50 );
94-
95-
b.tic();
96-
for ( i = 0; i < b.iterations; i++ ) {
97-
z = lcmf( x[ i % x.length ], y[ i % y.length ] );
98-
if ( isnanf( z ) ) {
99-
b.fail( 'should not return NaN' );
100-
}
101-
}
102-
b.toc();
103-
if ( isnanf( z ) ) {
104-
b.fail( 'should not return NaN' );
105-
}
106-
b.pass( 'benchmark finished' );
107-
b.end();
108-
});

0 commit comments

Comments
 (0)