You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var randu = require( '@stdlib/math/base/random/randu' );
var pkg = require( './../package.json' ).name;
var identityFunction = require( './../lib' );
// MAIN //
bench( pkg, function benchmark( b ) {
var x;
var y;
var i;
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
x = randu();
// Note: the following is likely to be optimized away (via inlining). If so, the benchmark will be only measuring random number generation, not the identity function.