[FFmpeg-devel] [PATCH] Reimplementation of OS/2 threads model

Dave Yeo daveryeo
Sat May 1 19:04:24 CEST 2010


On 04/28/10 08:01 am, Ramiro Polla wrote:
> Also have you tested performance?

I tried some simple benchmarks with the pthreads library vs the 
os2threads based on the winthreads as the API should be closer. 
Unluckily I only have a single core.

pthread 1 thread utime=29.721s, 31.638s, 28.725s
pthread 2 thread utime=30.832s, 30.285s, 32.033s
pthread 4 thread utime=30.980s, 31.045s, 31.762s

os2thread 1 thread utime=30.525s, 28.972s, 32.332s
os2thread with more then 1 thread crashes in thread #2 in 
_ff_mpeg1_decode_block_intra

The overhead with more then one thread using pthreads does seem low.
Dave



More information about the ffmpeg-devel mailing list