[MPlayer-dev-eng] [PATCH] use pthreads for caching

A Mennucc mennucc1 at debian.org
Sat Jan 27 12:56:57 CET 2007


hi

here are my benchmarks; I copied two files from samples.mphq.hu to my
localhost for those

the samples seem to show that the pthread version is faster



---------------------------------

time $C -benchmark -vo null -ao null -nosound -quiet -endpos 20
http://localhost/MPlayer-samples/bench/cathedral-beta2-400extra-crop-avc.mp4

----- C=./mplayer with  pthread cache

BENCHMARKs: VC:   4.679s VO:   0.008s A:   0.000s Sys:   0.179s =    4.866s
BENCHMARK%: VC: 96.1519% VO:  0.1676% A:  0.0000% Sys:  3.6805% = 100.0000%
real    0m5.750s
user    0m4.828s
sys     0m0.084s

BENCHMARKs: VC:   4.687s VO:   0.008s A:   0.000s Sys:   0.164s =    4.858s
BENCHMARK%: VC: 96.4716% VO:  0.1600% A:  0.0000% Sys:  3.3685% = 100.0000%
real    0m5.746s
user    0m4.864s
sys     0m0.044s

BENCHMARKs: VC:   4.657s VO:   0.009s A:   0.000s Sys:   0.177s =    4.842s
BENCHMARK%: VC: 96.1671% VO:  0.1824% A:  0.0000% Sys:  3.6506% = 100.0000%
real    0m5.715s
user    0m4.824s
sys     0m0.084s

----- C = mplayer  with forking cache

BENCHMARKs: VC:   4.738s VO:   0.007s A:   0.000s Sys:   0.167s =    4.913s
BENCHMARK%: VC: 96.4465% VO:  0.1521% A:  0.0000% Sys:  3.4013% = 100.0000%
real    0m5.456s
user    0m4.888s
sys     0m0.084s

BENCHMARKs: VC:   4.765s VO:   0.006s A:   0.000s Sys:   0.155s =    4.926s
BENCHMARK%: VC: 96.7271% VO:  0.1318% A:  0.0000% Sys:  3.1411% = 100.0000%
real    0m5.428s
user    0m4.932s
sys     0m0.056s

BENCHMARKs: VC:   4.747s VO:   0.007s A:   0.000s Sys:   0.165s =    4.919s
BENCHMARK%: VC: 96.5031% VO:  0.1475% A:  0.0000% Sys:  3.3494% = 100.0000%
real    0m5.430s
user    0m4.884s
sys     0m0.056s

---------------------

 time $C -quiet -benchmark -vo null -nosound
http://localhost/MPlayer-samples/bench/test.b-frames.divx5.avi

----- C=./mplayer with  pthread cache

BENCHMARKs: VC:   2.653s VO:   0.009s A:   0.000s Sys:   0.093s =    2.755s
BENCHMARK%: VC: 96.3166% VO:  0.3092% A:  0.0000% Sys:  3.3742% = 100.0000%
real    0m3.672s
user    0m2.848s
sys     0m0.048s

BENCHMARKs: VC:   2.778s VO:   0.010s A:   0.000s Sys:   0.128s =    2.915s
BENCHMARK%: VC: 95.2842% VO:  0.3260% A:  0.0000% Sys:  4.3898% = 100.0000%
real    0m3.930s
user    0m2.880s
sys     0m0.060s

----- C=./mplayer with forking cache

BENCHMARKs: VC:   3.057s VO:   0.010s A:   0.000s Sys:   0.123s =    3.190s
BENCHMARK%: VC: 95.8304% VO:  0.3084% A:  0.0000% Sys:  3.8612% = 100.0000%
real    0m3.628s
user    0m2.764s
sys     0m0.060s

BENCHMARKs: VC:   2.918s VO:   0.008s A:   0.000s Sys:   0.095s =    3.021s
BENCHMARK%: VC: 96.5721% VO:  0.2728% A:  0.0000% Sys:  3.1551% = 100.0000%
real    0m3.846s
user    0m2.952s
sys     0m0.068s

------------------------------

a.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070127/24576a03/attachment.pgp>


More information about the MPlayer-dev-eng mailing list