[Mplayer-cvslog] CVS: main/liba52 test.c,1.2,1.3

Michael Niedermayer michael at mplayer.dev.hu
Sun Dec 16 03:47:14 CET 2001


Update of /cvsroot/mplayer/main/liba52
In directory mplayer:/var/tmp.root/cvs-serv24104

Modified Files:
	test.c 
Log Message:
better benchmarking

Index: test.c
===================================================================
RCS file: /cvsroot/mplayer/main/liba52/test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- test.c	15 Dec 2001 22:32:14 -0000	1.2
+++ test.c	16 Dec 2001 02:47:03 -0000	1.3
@@ -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
-
 }




More information about the MPlayer-cvslog mailing list