summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-31 14:15:20 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-31 14:15:20 +0000
commitaa4c8c1ccd6fd37f7468243a61ad3607ce6a2027 (patch)
tree62ec586070d56d2ab77245a32ceaed0dce54b4e1 /TOOLS
parent1b0616162950f6442b89e20c3f592bd7fe4a383f (diff)
downloadmpv-aa4c8c1ccd6fd37f7468243a61ad3607ce6a2027.tar.bz2
mpv-aa4c8c1ccd6fd37f7468243a61ad3607ce6a2027.tar.xz
Remove unused benchmarking scripts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22858 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/benchmark-gab/README40
-rwxr-xr-xTOOLS/benchmark-gab/benchmark105
-rwxr-xr-xTOOLS/benchmark-gab/compile56
-rwxr-xr-xTOOLS/benchmark-gab/plot32
-rwxr-xr-xTOOLS/benchmark-gab/start25
-rwxr-xr-xTOOLS/benchmark-gab/variables18
-rwxr-xr-xTOOLS/benchmark/test-all.sh8
-rwxr-xr-xTOOLS/benchmark/test.sh16
-rwxr-xr-xTOOLS/benchmark/test1.sh10
9 files changed, 0 insertions, 310 deletions
diff --git a/TOOLS/benchmark-gab/README b/TOOLS/benchmark-gab/README
deleted file mode 100644
index 8508459f7d..0000000000
--- a/TOOLS/benchmark-gab/README
+++ /dev/null
@@ -1,40 +0,0 @@
-===================================================
-MPlayer benchmark scripts v0.9
-By Gabucino 2002-08-30
-License: GPL (well only usable with mplayer ofcoz...)
- NO WARRANTY
- By using this software you agree not to
- blame the author or the MPlayer team
- for any mischief, backdoor, rm -rf /
- or else this script may or may not do.
-===================================================
-
-Preamble
-========
-
- BEGINNERS MUST NOT TRY USING THESE SCRIPTS!!!
-
-Installation
-============
- - READ AND _U N D E R S T A N D_ WHAT THE SCRIPTS DO!
- - Copy the four shell scripts into an empty dir
- - Copy main.tar.gz to the same place (CVS checkout, compressed)
- - Copy ffmpeg.tar.gz to the same place (CVS checkout, compressed)
- - Create samples/ dir
- - Create samples to be used for benchmarking
- - (OPTIONAL) Create SAMPLE_FILE_NAME.opts file, containing
- standard MPlayer options - for usage with ONLY that file.
- Like: samples/MPEG1 MPEG1 file
- samples/MPEG1.opts "-vc mpeg12"
- samples/MPEG1_ffmpeg12 same MPEG1 file as MPEG1
- samples/MPEG1_ffmpeg12.opts "-vc ffmpeg12"
- etc...
- - 'touch xmga' if you have Matrox, and want to test mga_vid too
- (RTFS for these "touch" features)
- - if doing Xv and/or xmga tests, start an X server, and exec xhost +localhost
- - Push ./start
- - WAIT
- - (recover from backup;)))
- - See $BUILDDIR/log-2002-08-30 (today's date..) for the output.
-
-Fuck. (TODO?;)
diff --git a/TOOLS/benchmark-gab/benchmark b/TOOLS/benchmark-gab/benchmark
deleted file mode 100755
index 76a0e7abaa..0000000000
--- a/TOOLS/benchmark-gab/benchmark
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/sh
-
-. ./variables
-
-if [ ! -e $MPBIN ]; then
- wrtlog No MPlayer binary compiled for this arch, trying ./mplayer
- export MPBIN="./mplayer"
-fi
-
-function benchsamples {
-for i in `ls samples/* | grep -v -e '\.opts'`; do
- BENCHOPTS=`cat $i.opts 2> /dev/null`
- wrtlog Caching file...
- dd if=$i of=/dev/null bs=512k 2> /dev/null
- wrtlog Video decoding: `basename $i`, size: `ls -Ll $i | awk '{print $5}'`
- wrtlog Options for this run:
- wrtlog "$DEFAULTOPTS"
- wrtlog "Options for this file:"
- wrtlog "$BENCHOPTS"
- BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
- VC=`echo $BENCH | awk '{print $11}'`
- SYS=`echo $BENCH | awk '{print $9}'`
- wrtlog Total: $VC \(Sys: $SYS\)
-
- BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
- VC=`echo $BENCH | awk '{print $11}'`
- SYS=`echo $BENCH | awk '{print $9}'`
- wrtlog Total: $VC \(Sys: $SYS\)
-
- BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
- VC=`echo $BENCH | awk '{print $11}'`
- SYS=`echo $BENCH | awk '{print $9}'`
- wrtlog Total: $VC \(Sys: $SYS\)
-done
-}
-
-if [ ! -d samples ]; then
- wrtlog Samples subdirectory not present, exiting...
- exit 1
-fi
-
-wrtlog Starting benchmarks
-
-if [ ! -e no_codec ]; then
- wrtlog Starting CODEC benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo null -vf-clr -autoq 0"
- benchsamples
-fi
-
-export DISPLAY=:0
-export XAUTHORITY=$HOME/.Xauthority
-
-if [ ! -e no_xv ]; then
- if [ ! -e no_xv_nodr ]; then
- wrtlog Starting XVideo \(no DR\) benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -nodr -slices -vf-clr -autoq 0"
- benchsamples
- fi
-
- if [ ! -e no_xv_nodr_noslices ]; then
- wrtlog Starting XVideo \(no DR\) \(no slices\) benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -nodr -noslices -vf-clr -autoq 0"
- benchsamples
- fi
-
- if [ ! -e no_xv_dr ]; then
- wrtlog Starting XVideo \(DR\) benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -dr -slices -vf-clr -autoq 0"
- benchsamples
- fi
-
- if [ ! -e no_xv_dr_noslices ]; then
- wrtlog Starting XVideo \(DR\) \(no slices\) benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -dr -noslices -vf-clr -autoq 0"
- benchsamples
- fi
-fi
-
-if [ -e xmga ]; then
- if [ ! -e xmga_nodr ]; then
- wrtlog Starting XMGA \(no DR\) benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -nodr -slices -vf-clr -autoq 0"
- benchsamples
- fi
-
- if [ ! -e xmga_nodr_noslices ]; then
- wrtlog Starting XMGA \(no DR\) \(no slices\) benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -nodr -noslices -vf-clr -autoq 0"
- benchsamples
- fi
-
- if [ ! -e xmga_dr ]; then
- wrtlog Starting XMGA \(DR\) benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -vf-clr -autoq 0"
- benchsamples
- fi
-
- if [ ! -e xmga_dr_noslices ]; then
- wrtlog Starting XMGA \(DR\) \(no slices\) benchmark runs, with 3 tries...
- DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -noslices -vf-clr -autoq 0"
- benchsamples
- fi
-fi
-
-wrtlog Benchmarks ready
diff --git a/TOOLS/benchmark-gab/compile b/TOOLS/benchmark-gab/compile
deleted file mode 100755
index 46e403d3ec..0000000000
--- a/TOOLS/benchmark-gab/compile
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-
-. ./variables
-
-wrtlog Starting compilation
-wrtlog Options: $COMPILEOPTIONS
-
-if [ ! -e main.tar.gz ]; then
- wrtlog MPlayer source main.tar.gz not present, exiting...
- exit 1
-fi
-
-if [ ! -e main.tar.gz ]; then
- wrtlog libavcodec source ffmpeg.tar.gz not present, exiting...
- exit 1
-fi
-
-if [ ! -d main ]; then
- wrtlog Unpacking source...
- tar xfzv main.tar.gz > /dev/null || (wrtlog Error; exit 1)
- wrtlog Unpacking done
- wrtlog Source total size: `du -hs main | awk '{print $1}'`
-else
- wrtlog MPlayer source already there, not unpacking
-fi
-
-wrtlog Creating and entering separate build dir...
-rm -rf $BUILD
-mkdir $BUILD || (wrtlog Error; exit 1)
-cd $BUILD
-lndir ../main > /dev/null || (wrtlog Error; exit 1)
-wrtlog Separate build dir created
-
-wrtlog Unpacking libavcodec
-rm -rf libavcodec
-ln -s . ffmpeg || (wrtlog Error; exit 1)
-tar xfzv ../ffmpeg.tar.gz ffmpeg/libavcodec > /dev/null || (wrtlog Error; exit 1)
-rm -f ffmpeg
-wrtlog Unpacking libavcodec done
-wrtlog libavcodec total size: `du -hs libavcodec | awk '{print $1}'`
-
-wrtlog Executing configure...
-./configure $COMPILEOPTIONS > /dev/null || (wrtlog Error; exit 1)
-wrtlog Configure done
-
-wrtlog Executing main compile process...
-unset CFLAGS CPPFLAGS CXXFLAGS
-make > /dev/null 2> /dev/null || (wrtlog Error; exit 1)
-wrtlog Compile ready
-wrtlog Build dir size: `du -hs . | awk '{print $1}'`
-
-wrtlog Unstripped mplayer binary size: `ls -l mplayer | awk '{print $5}'`
-wrtlog Unstripped mencoder binary size: `ls -l mencoder | awk '{print $5}'`
-
-cd ..
-rm -rf main
diff --git a/TOOLS/benchmark-gab/plot b/TOOLS/benchmark-gab/plot
deleted file mode 100755
index 22923e396f..0000000000
--- a/TOOLS/benchmark-gab/plot
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-#
-# needs ImageMagick and gnuplot installed
-# ImageMagick not needed if you don't wanna convert to JPG
-#
-
-. ./variables
-
-rm -f *.plot
-rm -f log-*.pbm
-rm -f log-*.jpg
-rm -f plot.file
-
-for i in log-*; do
- grep Total: $i | awk '{print $6}' | sed s/s// | nl | head -n 75 > $i.plot
-done
-
-for i in log-*.plot; do
- echo "set key left box" > plot.file
- echo "set samples 50" >> plot.file
- echo "set term pbm" >> plot.file
- echo "plot [0:75] '$i'" >> plot.file
- #echo "pause -1 \"Hit return to continue\"" >> plot.file
- #echo "" >> plot.file
- gnuplot plot.file > $i.pbm
- convert $i.pbm $i.jpg
- rm -f $i.pbm
-done
-
-#gnuplot plot.file > out.pbm
-rm -f *.plot
-rm -f plot.file
diff --git a/TOOLS/benchmark-gab/start b/TOOLS/benchmark-gab/start
deleted file mode 100755
index 9ee1bc1f55..0000000000
--- a/TOOLS/benchmark-gab/start
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-. ./variables
-
-rm -f $LOGFILE
-
-wrtlog Script version v0.91
-wrtlog CPU: $VENDOR $MODEL $MHZ
-wrtlog CPUFLAGS: $CPUFLAGS
-wrtlog MEM: $MEMORY
-wrtlog VGA: $VGA
-
-if [ ! -e no_compile ]; then
- ./compile
-else
- wrtlog Skipping compilation
-fi
-
-if [ ! -e no_benchmark ]; then
- ./benchmark
-else
- wrtlog Skipping benchmark
-fi
-
-wrtlog Exiting.
diff --git a/TOOLS/benchmark-gab/variables b/TOOLS/benchmark-gab/variables
deleted file mode 100755
index 412b742279..0000000000
--- a/TOOLS/benchmark-gab/variables
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-export PATH=$PATH:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin
-
-VENDOR="`cat /proc/cpuinfo | grep vendor_id | cut -c 13-`"
-MODEL="`cat /proc/cpuinfo | grep "model name" | cut -c 14-`"
-CPUFLAGS="`cat /proc/cpuinfo | grep flags | cut -c 10-`"
-MHZ="`cat /proc/cpuinfo | grep MHz | cut -c 12-14` MHz"
-MEMORY="`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` Kb"
-BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_] | tr [\/] [_]`"
-VGA="`lspci | grep VGA | cut -c 36-`"
-MPBIN="$BUILD/mplayer"
-
-export LOGFILE="`pwd`/log-$BUILD-`date +\"%Y-%m-%d\"`"
-export COMPILEOPTIONS="--enable-runtime-cpudetection"
-
-function wrtlog {
- echo "[ `date +\"%Y-%m-%d %T\"` ] $*" >> "$LOGFILE"
-}
diff --git a/TOOLS/benchmark/test-all.sh b/TOOLS/benchmark/test-all.sh
deleted file mode 100755
index 0c889843c4..0000000000
--- a/TOOLS/benchmark/test-all.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-
-./test.sh /3d/divx/Coyote.Ugly.Sample-highbitrate-atmos.avi
-./test.sh /3d/divx/sample.light.it.up.avi
-./test.sh /3d/divx/405divx_sm_v2[1].avi
-./test.sh /3d/divx/MI2-Trailer.avi
-./test.sh /3b/hannibal.avi
-./test.sh /3b/huge_bands.avi
-./test.sh /3b/Star_Wars_Episode_1.avi
diff --git a/TOOLS/benchmark/test.sh b/TOOLS/benchmark/test.sh
deleted file mode 100755
index e83eba86aa..0000000000
--- a/TOOLS/benchmark/test.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-
-echo 'File: ' $1
-mplayer -frames 0 -vo null $1 | grep VIDEO
-
-echo -n 'DShow DLL : '
-./test1.sh mplayer $1 -vc divxds -vo null |cut -c 15-23 |xargs echo
-echo -n 'VfW DLL : '
-./test1.sh mplayer $1 -vc divx -vo null |cut -c 15-23 |xargs echo
-echo -n 'DivX4-YV12 : '
-./test1.sh mplayer $1 -vc odivx -vo null |cut -c 15-23 |xargs echo
-echo -n 'DivX4-YUY2 : '
-./test1.sh mplayer $1 -vc divx4 -vo null |cut -c 15-23 |xargs echo
-echo -n 'FFmpeg : '
-./test1.sh mplayer $1 -vc ffdivx -vo null |cut -c 15-23 |xargs echo
-
-echo ""
diff --git a/TOOLS/benchmark/test1.sh b/TOOLS/benchmark/test1.sh
deleted file mode 100755
index 4459bff3cb..0000000000
--- a/TOOLS/benchmark/test1.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-
-sync
-sleep 1
-cat $2 >/dev/null
-sleep 2
-$* -benchmark -nosound | grep BENCHMARKs
-$* -benchmark -nosound | grep BENCHMARKs
-$* -benchmark -nosound | grep BENCHMARKs
-# $* -benchmark -nosound | grep BENCHMARKs
-# echo ""