[vorbis] Performance tests

volsung at asu.edu volsung at asu.edu
Tue Oct 16 15:29:51 PDT 2001



On Wed, 17 Oct 2001, Hongli Lai wrote:

> On 2001.10.16 20:58:14 +0200 Rik Hemsley wrote:
> > #if David Balazic
> > 
> > > Do not use top under linux either !
> > 
> > Note for future reference: If you want to test the CPU usage of
> > decoding under Linux, simply use something like the following:
> > 
> > time ogg123 -d null file.ogg
> > 
> > Or for mpg123:
> > 
> > time mpg123 -t file.ogg
> > 
> > The 'user' value is a good guide to the amount of CPU needed, in
> > seconds.
> > 
> 
> That won't work. ogg123 will simply use 100% CPU because it will
> decode things faster than realtime.

This is true for example above.  A better test would be:

time ogg123 -q file.ogg

That way CPU usage is being limited by the playback audio device (forcing CPU
usage to be approximately realtime) and CPU time is not being wasted on
printing the status line.


---
Stan Seibert

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis mailing list