3 # Copyright (C) 2011 Sebastian Pop <sebpop@gmail.com>.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details. A copy of this license
13 # can be downloaded from http://www.gnu.org/copyleft/gpl.html
16 rm -rf usr libxml2-2.6
.31 php-5.2
.9 phpbench-0.8
.1
18 tar -zxf libxml2-2.6
.31.
tar.gz
19 tar -jxf php-5.2
.9.
tar.bz2
20 tar -zxf phpbench-0.8
.1.
tar.gz
22 .
/configure
--prefix=$p/usr
23 make -j $procs CFLAGS
="$CFLAGS"
26 .
/configure
--with-libxml-dir=$p/usr
--prefix=$p/usr
27 make -j $procs CFLAGS
="$CFLAGS"
31 $p/usr
/bin
/php phpbench.php
-i 100000 |
sed -e "/^Warning.*$/d" -e "/^$/d" > $p/log
2> /dev
/null
33 echo "phpbench run time: `echo "$after - $before" | bc`" >> $p/log
34 sed -i -e'/enabled/d' $p/log
35 cd $p; rm -rf usr libxml2-2.6
.31 php-5.2
.9 phpbench-0.8
.1