Skip to content

Commit 9c21995

Browse files
authored
update benchmark.c
Signed-off-by: Harsh <[email protected]>
1 parent e73c303 commit 9c21995

File tree

1 file changed

+5
-0
lines changed
  • lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/native

1 file changed

+5
-0
lines changed

lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/native/benchmark.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ static double benchmark( void ) {
9797
double z;
9898
int i;
9999

100+
for ( i = 0; i < 100; i++ ) {
101+
x[ i ] = ( 1000.0*rand_double() ) - 500.0;
102+
y[ i ] = ( 1000.0*rand_double() ) - 500.0;
103+
}
104+
100105
t = tic();
101106
for ( i = 0; i < ITERATIONS; i++ ) {
102107
z = stdlib_base_minabs( x[ i%100 ], y[ i%100 ] );

0 commit comments

Comments
 (0)