Skip to content

Commit de912e1

Browse files
Updated benchmarks
1 parent b9593ca commit de912e1

File tree

5 files changed

+12
-392
lines changed

5 files changed

+12
-392
lines changed

lib/node_modules/@stdlib/math/base/special/expf/benchmark/benchmark.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ bench( pkg, function benchmark( b ) {
3434
var y;
3535
var i;
3636

37+
x = randu( 100, -50.0, 50.0 );
3738
b.tic();
3839
for ( i = 0; i < b.iterations; i++ ) {
39-
x = ( randu()*100.0 ) - 50.0;
40-
y = expf( x );
40+
y = expf( x[ i % x.length ] );
4141
if ( isnan( y ) ) {
4242
b.fail( 'should not return NaN' );
4343
}
@@ -55,10 +55,10 @@ bench( pkg+'::built-in', function benchmark( b ) {
5555
var y;
5656
var i;
5757

58+
x = randu( 100, -50.0, 50.0 );
5859
b.tic();
5960
for ( i = 0; i < b.iterations; i++ ) {
60-
x = ( randu()*100.0 ) - 50.0;
61-
y = Math.exp( x ); // eslint-disable-line stdlib/no-builtin-math
61+
y = Math.exp( x[ i % x.length ] ); // eslint-disable-line stdlib/no-builtin-math
6262
if ( isnan( y ) ) {
6363
b.fail( 'should not return NaN' );
6464
}

lib/node_modules/@stdlib/math/base/special/expf/benchmark/c/benchmark.c

Lines changed: 0 additions & 132 deletions
This file was deleted.

lib/node_modules/@stdlib/math/base/special/expf/benchmark/c/cephes/Makefile

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)