#!/bin/sh set -v set -x TMPDIR=/var/tmp/ for ver in 2.95.3 3.0.4 3.1.1 3.2.3 3.3.2 3.4.0; do tar -xjf MPlayer-1.0pre4.tar.bz2 mv MPlayer-1.0pre4 MPlayer-1.0pre4-$ver cd MPlayer-1.0pre4-$ver ./configure --cc=$TMPDIR/gcc-$ver/bin/gcc echo gcc $ver took: time make | tail -n 3 | head -n 1 >> $TMPDIR/time.txt echo >> $TMPDIR/time.txt for pass in $(seq 10); do for movie in farmsluts.mov blinkenlights-arcade.mp4 Mastercard.asf GoneNutty.avi echo $movie \#$pass - $ver MPlayer-1.0pre4-gcc-$ver/mplayer -afm ffmpeg -vfm ffmpeg -nosound -vo null \ -v -benchmark -frames 1000 $movie &> $TMPDIR/bench-$ver-$movie-$pass.txt done rm -rf MPlayer-1.0pre4-$ver done