[ftbench] styling and formatting

gsoc-2023-ahmet-final
goksu 1 year ago
parent 8ca5bb5bf1
commit 4bcf3d9b81
No known key found for this signature in database
  1. 21
      src/tools/ftbench/ftbench.c

@ -271,7 +271,7 @@
double max_time,
double warmup )
{
int n, done;
int n, w, done;
btimer_t timer;
@ -281,16 +281,21 @@
test->bench( face, test->user_data );
}
TIMER_START(&timer);
for(int i = 0; i<warmup; i++)
for( w = 0; w < warmup; w++ )
test->bench(face, test->user_data);
TIMER_STOP(&timer);
printf( " %-25s ", test->title );
fflush( stdout );
TIMER_RESET( &timer );
for ( n = 0, done = 0; !max_iter || n < max_iter; n++ )
{
TIMER_START( &timer );
@ -303,6 +308,7 @@
break;
}
if ( done )
printf( "%10.3f microseconds %10d done\n",
TIMER_GET( &timer ) / (double)done, done );
@ -1295,8 +1301,7 @@
warmup_iter = atoi( optarg );
if ( warmup_iter < 0 )
warmup_iter = -warmup_iter;
break;
break;
/* break; */
@ -1387,8 +1392,9 @@
if ( max_iter )
printf( "number of iterations for each test: at most %d\n",
max_iter );
printf( "number of iterations as warmup in all tests: %d\n",
warmup_iter );
printf( "\n"
"number of iterations as warmup in all tests: %d\n",
warmup_iter );
printf( "\n"
"executing tests:\n" );
@ -1574,4 +1580,5 @@
}
/* End */
/* End */
Loading…
Cancel
Save