Skip to content

Commit b1b3986

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent cb2e640 commit b1b3986

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/dvander/benchmark/c/benchmark.length.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ int main( void ) {
179179
print_version();
180180
count = 0;
181181
for ( i = MIN; i <= MAX; i++ ) {
182-
len = (int)floor( pow( pow( 10, i ), 1.0/2.0 ) );
182+
len = (int)pow( 10, i );
183183
iter = ITERATIONS / pow( 10, i-1 );
184184
for ( j = 0; j < REPEATS; j++ ) {
185185
count += 1;
186-
printf( "# c::native::%s:size=%d\n", NAME, len*len );
186+
printf( "# c::native::%s:len=%d\n", NAME, len );
187187
elapsed = benchmark1( iter, len );
188188
print_results( iter, elapsed );
189189
printf( "ok %d benchmark finished\n", count );
@@ -194,7 +194,7 @@ int main( void ) {
194194
iter = ITERATIONS / pow( 10, i-1 );
195195
for ( j = 0; j < REPEATS; j++ ) {
196196
count += 1;
197-
printf( "# c::native::%s:ndarray:size=%d\n", NAME, len*len );
197+
printf( "# c::native::%s:ndarray:len=%d\n", NAME, len );
198198
elapsed = benchmark2( iter, len );
199199
print_results( iter, elapsed );
200200
printf( "ok %d benchmark finished\n", count );

0 commit comments

Comments
 (0)