Skip to content

Commit

Permalink
bench: update benchmarks, test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjjoshi committed Aug 23, 2024
1 parent 49ad764 commit 3cdc17e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/random/array/uniform' );
var roundf = require( '@stdlib/math/base/special/roundf' );
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pkg = require( './../package.json' ).name;
var logf = require( './../lib' );
Expand All @@ -37,7 +37,7 @@ bench( pkg, function benchmark( b ) {
var i;

x = randu( 100, 1.0, 1000.0 );
base = roundf( randu( 100, 2.0, 10.0 ) );
base = discreteUniform( 100, 2.0, 10.0 );

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/random/array/uniform' );
var roundf = require( '@stdlib/math/base/special/roundf' );
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var tryRequire = require( '@stdlib/utils/try-require' );
var pkg = require( './../package.json' ).name;
Expand All @@ -46,7 +46,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
var i;

x = randu( 100, 1.0, 1000.0 );
base = roundf( randu( 100, 2.0, 10.0 ) );
base = discreteUniform( 100, 2.0, 10.0 );

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
Expand Down

0 comments on commit 3cdc17e

Please sign in to comment.