Skip to content

Commit 81fb811

Browse files
authored
chore: update benchmark.js
Signed-off-by: Anshu Kumar <[email protected]>
1 parent 8071e5d commit 81fb811

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/stats/incr/nanmeanabs/benchmark

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/stats/incr/nanmeanabs/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24+
var randu = require( '@stdlib/random/base/randu' );
2425
var pkg = require( './../package.json' ).name;
2526
var incrnanmeanabs = require( './../lib' );
2627

@@ -54,7 +55,7 @@ bench( pkg+'::accumulator', function benchmark( b ) {
5455

5556
b.tic();
5657
for ( i = 0; i < b.iterations; i++ ) {
57-
v = acc( i );
58+
v = acc( randu()-0.5 );
5859
if ( v !== v ) {
5960
b.fail( 'should not return NaN' );
6061
}

0 commit comments

Comments
 (0)