Re: PHP vs PHP NTS benackmark (win32)
| From: | Jochem Maas | Date: | Thu, 17 Jul 2008 10:25:32 +0000 |
| Subject: | Re: PHP vs PHP NTS benackmark (win32) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39048@lists.php.net to get a copy of this message | ||
David Zülke schreef:
Am 17.07.2008 um 11:36 schrieb Mario Brandt:hmmm. can't speak for Mario but reading this caused a few questions to pop up in my head. Im an average joe php'er trying to write secure and fast code, I am aware of threads and processes and the general issues but don't understand the gritty details of implementing reentrant [C] code (is that the right word??) I know that running php in a threaded env is a no-no due mostly to certain extension being [probably] not thread safe - an uncertainty factor not suitable for production, at least so I have been led to believe by comments made by core php devs. (is this [still] true?) now the question part ... a, what are the ramifications of having to run php without threading when we live in a world that's increasingly moving towards multi-core/multi- CPU systems? b, Is php not missing out here big time? d, Will threads ever become recommended in/for php? e, If threads become the norm, will php code have to be written differently to account for threads? f, are there things I can/should be doing to my [production] systems/software-stacks to leverage extra performance for my php code from CPUs with multiple cores (and/or machines with multiple CPUs)? g, am I worrying about nothing? :-)I made a test on my console (cmd.exe) ENV: WinXP SP 3 all updates, PHP 5.2.6 / PHP 5.2.6 non thread safe (NTS) Intel Celeron 2.4 GHz 1 GB DDR Ram It showed that the non thread safe is faster than the thread safe version.And your point/question is...?
David