You install witch one you want.
If you want to speed up php script execution, install eaccelerator.
If you want to optimize output bandwith of apache server, install mod_deflate.
If you want to make optmize bw AND php script, install both.
THERE is no link between those contrib !