# Performance problem in Windows between 5.1 & 5.2

- Thread: https://externals.io/message/28978
- Original archive: https://news-web.php.net/php.internals/28978
- Started by Mauro Infantino on 2007-04-24T13:41:18+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #28978 — Mauro Infantino — 2007-04-24T13:41:18+00:00

URL: https://externals.io/message/28978#28978

Hi all,

I'm using PHP 5.1.6 & 5.2.1.
Is there any known performance issue with PHP 5.2.1?
With the same script, same php.ini, same extensions, same apache (of course), I'm getting a huge difference.

For example, with a microtime difference between start & end I get:

- PHP 5.1.6: 111ms avg.
- PHP 5.2.1: 205ms avg.

Also, If I compare the results from the xdebug profiling extension it gets worse (322ms vs. 22ms). I can send the zipfile (69k) containing the two cachegrind files if needed. The code is a little complicated because it uses our framework with an autoprepended file and using __autoload, but you'll see that the function calls are exactly the same.

Thanks in advance.

Mauro Nicolás Infantino
Vera 568 - BA - Argentina :: 54 11 4857 6585 :: www.digbang.com

---

## #28988 — Andrew Hutchings — 2007-04-24T16:33:10+00:00

URL: https://externals.io/message/28978#28988 · In reply to: #28978

Mauro Infantino wrote:
> Hi all,
> 
> I'm using PHP 5.1.6 & 5.2.1.
> Is there any known performance issue with PHP 5.2.1?
> With the same script, same php.ini, same extensions, same apache (of course), I'm getting a huge difference.
> 
> For example, with a microtime difference between start & end I get:
> 
> - PHP 5.1.6: 111ms avg.
> - PHP 5.2.1: 205ms avg.

I brought this issue up before using Linux, but it was all in my
imagination apparently :)

Regards
Andrew
-- 
Andrew Hutchings - Linux Jedi - http://www.linuxjedi.co.uk/
Windows is the path to the darkside...Windows leads to Blue Screen. Blue
Screen leads to downtime. Downtime leads to suffering...I sense much
Windows in you.
