From bf8bb2d3ec40314ed43fb3def314769f0daab02c Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 7 Feb 2024 05:44:56 +0000 Subject: [PATCH] Auto-generated commit --- base/assert/is-data-type/benchmark/benchmark.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/base/assert/is-data-type/benchmark/benchmark.js b/base/assert/is-data-type/benchmark/benchmark.js index fd3dfb60..2d3bc72d 100644 --- a/base/assert/is-data-type/benchmark/benchmark.js +++ b/base/assert/is-data-type/benchmark/benchmark.js @@ -21,8 +21,6 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); -var floor = require( '@stdlib/math/base/special/floor' ); var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; var pkg = require( './../package.json' ).name; var isDataType = require( './../lib' ); @@ -57,7 +55,7 @@ bench( pkg, function benchmark( b ) { b.tic(); for ( i = 0; i < b.iterations; i++ ) { - v = values[ floor( randu()*values.length ) ]; + v = values[ i%values.length ]; out = isDataType( v ); if ( typeof out !== 'boolean' ) { b.fail( 'should return a boolean' );