Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sebastian Bergmann
Marcus Boerger wrote: > very nice so far but i am eagerly awaiting the 4.3 results now :-) I have uploaded the results for PHP 4.3.10-dev, PHP 5.0.3-dev, and PHP 5.1.0-dev to http://www.sebastian-bergmann.de/stuff/gcc-cflags.pdf The machine used was http://www.sebastian-bergmann.de/gal

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sebastian Bergmann
Marcus Boerger wrote: > 5.1: ./configure --with-zend-vm=[CALL|SWITCH|GOTO] I do not seem to have that configure switch (current HEAD): [EMAIL PROTECTED] php-5.1 % ./configure --help|grep vm --enable-sysvmsgEnable sysvmsg support -- Sebastian Bergmann http:/

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Andi Gutmans
I've done lots of testing with these kind of compiler flags. It's really a tough call because you might change 2 lines in the PHP code and then your results might differ completely because of CPU cache hits/misses. Also very much depends on the CPU. But in any case, interesting results. Andi At

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Marcus Boerger
Hello Sebastian, Monday, October 4, 2004, 10:01:36 PM, you wrote: > Marcus Boerger wrote: >> That means not using all opcodes could result in faster execution with >> the function based executor. Maybe sebastian could try that too? > How would I do that? 3.*, 4.*: switch only 5.0: call only 5.

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sebastian Bergmann
Marcus Boerger wrote: > That means not using all opcodes could result in faster execution with > the function based executor. Maybe sebastian could try that too? How would I do that? -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 0

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sebastian Bergmann
Ilia Alshanetsky wrote: > I was somewhat surprised by O2 and O1 being slower then Os This is because the L1/L2 caches are very small. I will re-run the benchmark tomorrow (if I find the time) on my Athlon64 box. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sebastian Bergmann
Marcus Boerger wrote: > very nice so far but i am eagerly awaiting the 4.3 results now :-) You'll have to wait at least until tomorrow. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Marcus Boerger
Hello Sterling, hello Sebastian, Monday, October 4, 2004, 9:18:47 PM, you wrote: > On Mon, 04 Oct 2004 15:05:04 -0400, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: >> Very interesting numbers, I'd like to second Marcus' request for a 4.3 >> benchmark. >> >> I was somewhat surprised by O2 and O1 b

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sterling Hughes
On Mon, 04 Oct 2004 15:05:04 -0400, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: > Very interesting numbers, I'd like to second Marcus' request for a 4.3 > benchmark. > > I was somewhat surprised by O2 and O1 being slower then Os, while O3 in > some cases may end over optimizing which would it expl

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Ilia Alshanetsky
Very interesting numbers, I'd like to second Marcus' request for a 4.3 benchmark. I was somewhat surprised by O2 and O1 being slower then Os, while O3 in some cases may end over optimizing which would it explain it's poor showing. However, it could be that it makes simple situations slower, wh

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Marcus Boerger
Hello Sebastian, Monday, October 4, 2004, 8:55:07 PM, you wrote: > Marcus Boerger wrote: >> Also how about providing a spreadsheet for a better overiew? > http://www.sebastian-bergmann.de/stuff/gcc-cflags.png Looks very nice so far but i am eagerly awaiting the 4.3 results now :-) -- Best re

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sebastian Bergmann
Marcus Boerger wrote: > Also how about providing a spreadsheet for a better overiew? http://www.sebastian-bergmann.de/stuff/gcc-cflags.png -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 --

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sebastian Bergmann
Marcus Boerger wrote: > could you please repeat the tests for php 4.3 to see the interesting > difference? Yes, I can do that. > How did you do the timeings, i assume time command? I used the "total" output of Zend/bench.php. > And what CPU did you us, especially how much cache arewe talking

Re: [PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Marcus Boerger
Hello Sebastian, could you please repeat the tests for php 4.3 to see the interesting difference? Also how about providing a spreadsheet for a better overiew? How did you do the timeings, i assume time command? And what CPU did you us, especially how much cache arewe talking about? best regards m

[PHP-DEV] GCC/CFLAGS Benchmark for HEAD and PHP_5_0

2004-10-04 Thread Sebastian Bergmann
I ran the Zend/bench.php script with PHP 5.0 and PHP 5.1 compiled with GCC 3.3 and GCC 3.4 using different optimizations on my Intel Pentium-M laptop: HEAD (PHP 5.1.0-dev) GCC 3.3.4 (-march=pentium3) -O0: 48.602 -Os: 29.920