Skip to content

Commit

Permalink
chore: update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Neerajpathak07 committed Feb 25, 2025
1 parent c56c30e commit 2f2a721
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 @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var FLOAT32_SQRT_HALF = require( '@stdlib/constants/float32/sqrt-half' );
var FLOAT32_SQRT2 = require( '@stdlib/constants/float32/sqrt-two' );
var FLOAT32_SQRT_TWO = require( '@stdlib/constants/float32/sqrt-two' );
var pkg = require( './../package.json' ).name;
var kernelLog1pf = require( './../lib' );

Expand All @@ -36,7 +36,7 @@ bench( pkg, function benchmark( b ) {
var y;
var i;

x = uniform( 100, FLOAT32_SQRT_HALF, 2.0 / FLOAT32_SQRT2 );
x = uniform( 100, FLOAT32_SQRT_HALF, FLOAT32_SQRT_TWO );

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
var FLOAT32_SQRT_HALF = require( '@stdlib/constants/float32/sqrt-half' );
var FLOAT32_SQRT2 = require( '@stdlib/constants/float32/sqrt-two' );
var FLOAT32_SQRT_TWO = require( '@stdlib/constants/float32/sqrt-two' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var tryRequire = require( '@stdlib/utils/try-require' );
var pkg = require( './../package.json' ).name;
Expand All @@ -45,7 +45,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
var y;
var i;

x = uniform( 100, FLOAT32_SQRT_HALF, 2.0 / FLOAT32_SQRT2 );
x = uniform( 100, FLOAT32_SQRT_HALF, FLOAT32_SQRT_TWO );

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

0 comments on commit 2f2a721

Please sign in to comment.