We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264a2fc commit 851a95fCopy full SHA for 851a95f
lib/node_modules/@stdlib/ndarray/base/assert/is-order/benchmark/benchmark.js
@@ -21,8 +21,6 @@
21
// MODULES //
22
23
var bench = require( '@stdlib/bench' );
24
-var randu = require( '@stdlib/random/base/randu' );
25
-var floor = require( '@stdlib/math/base/special/floor' );
26
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
27
var pkg = require( './../package.json' ).name;
28
var isOrder = require( './../lib' );
@@ -50,7 +48,7 @@ bench( pkg, function benchmark( b ) {
50
48
51
49
b.tic();
52
for ( i = 0; i < b.iterations; i++ ) {
53
- v = values[ floor( randu()*values.length ) ];
+ v = values[ i%values.length ];
54
out = isOrder( v );
55
if ( typeof out !== 'boolean' ) {
56
b.fail( 'should return a boolean' );
0 commit comments