Mercurial > mplayer.hg
changeset 3511:70a686041bbe
better benchmarking
author | michael |
---|---|
date | Sun, 16 Dec 2001 02:47:03 +0000 |
parents | 0e5829f1fb75 |
children | 1f166e420b15 |
files | liba52/test.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/liba52/test.c Sun Dec 16 00:31:44 2001 +0000 +++ b/liba52/test.c Sun Dec 16 02:47:03 2001 +0000 @@ -148,7 +148,7 @@ int sample_rate=0; int bit_rate=0; #ifdef TIMING -long long t, sum=0; +long long t, sum=0, min=256*256*256*64; #endif samples = a52_init (accel); @@ -209,14 +209,17 @@ } s16+=2*i; } +#ifdef TIMING +if(sum<min) min=sum; +sum=0; +#endif fwrite(out_buf,6*256*2*2,1,stdout); } eof: - #ifdef TIMING -fprintf(stderr, "%4.4fm cycles\n",sum/1000000.0); +fprintf(stderr, "%4.4fk cycles ",min/1000.0); +sum=0; #endif - }