Skip to content

Commit b66a986

Browse files
authored
update benchmark.native.js
Signed-off-by: Harsh <[email protected]>
1 parent 87ae2df commit b66a986

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/node_modules/@stdlib/math/base/assert/is-finite/benchmark/benchmark.native.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5050

5151
b.tic();
5252
for ( i = 0; i < b.iterations; i++ ) {
53-
x = ( randu()*1.0e7 ) - 5.0e6;
54-
y = isfinite( x );
53+
y = isfinite( x[ i%x.length ] );
5554
if ( typeof y !== 'boolean' ) {
5655
b.fail( 'should return a boolean' );
5756
}

0 commit comments

Comments
 (0)