Skip to content

Commit 8d078d9

Browse files
committed
edit benchmark
1 parent 9425351 commit 8d078d9

File tree

1 file changed

+5
-6
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/c

1 file changed

+5
-6
lines changed

lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/c/benchmark.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#define NAME "normal-pdf"
2828
#define ITERATIONS 1000000
2929
#define REPEATS 3
30-
#define LEN 100
3130

3231
/**
3332
* Prints the TAP version.
@@ -94,13 +93,13 @@ static double random_uniform( const double min, const double max ) {
9493
* @return elapsed time in seconds
9594
*/
9695
static double benchmark( void ) {
97-
double elapsed;
98-
double x[ LEN ];
99-
double mu[ LEN ];
100-
double sigma[ LEN ];
96+
int i;
10197
double y;
10298
double t;
103-
int i;
99+
double elapsed;
100+
double mu[ 100 ];
101+
double sigma[ 100 ];
102+
double x[ 100 ];
104103

105104
for ( i = 0; i < LEN; i++ ) {
106105
x[ i ] = random_uniform( -100.0, 100.0 );

0 commit comments

Comments
 (0)