[PHP-INSTALL] huge performance diff between windows and linux.

2013-09-07 Thread Paul Roland
Hey I have an issue and I ran out of ideas.
I have two virtual servers, one running debian with compiled php and one
running server 2008 with php non thread safe version.
Both have 5.5.3 version installed and both have almoust the same config and
modules, with opcache enabled. 

However I ran the benchmark script found online and I get this values:

Linux:

PHP version : 5.5.3
Platform : Linux
--
test_math : 1.677 sec.
test_stringmanipulation   : 1.625 sec.
test_loops: 0.910 sec.
test_ifelse   : 0.757 sec.
--
Total time:   : 4.969 sec.

Windows:

PHP version : 5.5.3
Platform : WINNT
--
test_math : 2.516 sec.
test_stringmanipulation   : 5.297 sec.
test_loops: 1.516 sec.
test_ifelse   : 0.781 sec.
--
Total time:   : 10.11 sec.


The question is am I missing something? can somebody with more experience
advise me what to setup on php or iis to improve this?
Not to mention that the windows server has double amount of ram and cpu.

I know I know I should blame Microsoft but even so I doubt THEY can do anything
in this setup. So I doing my best on my own, I would love to have Linux on that
box but it's not up to me.





Re: [PHP-INSTALL] huge performance diff between windows and linux.

2013-09-07 Thread Jorge Hernandez
I might be wrong, but if you are using nts it means you are using IIS, try
ts with apache and compare results.

In my personal experience, PHP runs slower on IIS because it uses it as CGI.

Let us know how it goes.

Jorge_.
On Sep 7, 2013 12:15 PM, "Paul Roland"  wrote:

> Hey I have an issue and I ran out of ideas.
> I have two virtual servers, one running debian with compiled php and one
> running server 2008 with php non thread safe version.
> Both have 5.5.3 version installed and both have almoust the same config and
> modules, with opcache enabled.
>
> However I ran the benchmark script found online and I get this values:
>
> Linux:
>
> PHP version : 5.5.3
> Platform : Linux
> --
> test_math : 1.677 sec.
> test_stringmanipulation   : 1.625 sec.
> test_loops: 0.910 sec.
> test_ifelse   : 0.757 sec.
> --
> Total time:   : 4.969 sec.
>
> Windows:
>
> PHP version : 5.5.3
> Platform : WINNT
> --
> test_math : 2.516 sec.
> test_stringmanipulation   : 5.297 sec.
> test_loops: 1.516 sec.
> test_ifelse   : 0.781 sec.
> --
> Total time:   : 10.11 sec.
>
>
> The question is am I missing something? can somebody with more experience
> advise me what to setup on php or iis to improve this?
> Not to mention that the windows server has double amount of ram and cpu.
>
> I know I know I should blame Microsoft but even so I doubt THEY can do
> anything
> in this setup. So I doing my best on my own, I would love to have Linux on
> that
> box but it's not up to me.
>
>
>
>


Re: [PHP-INSTALL] huge performance diff between windows and linux.

2013-09-07 Thread lester
This is actually better than the benchmarks I published a while back. I was 
seeing 3 or 4 times difference. Identical hardware, duel boot off the same hard 
disk.

Sent from my android device so the quoting is crap!

-Original Message-
From: Paul Roland 
To: php-install@lists.php.net
Sent: Sat, 07 Sep 2013 17:15
Subject: [PHP-INSTALL] huge performance diff between windows and linux.

Hey I have an issue and I ran out of ideas.
I have two virtual servers, one running debian with compiled php and one
running server 2008 with php non thread safe version.
Both have 5.5.3 version installed and both have almoust the same config and
modules, with opcache enabled. 

However I ran the benchmark script found online and I get this values:

Linux:

PHP version : 5.5.3
Platform : Linux
--
test_math : 1.677 sec.
test_stringmanipulation   : 1.625 sec.
test_loops: 0.910 sec.
test_ifelse   : 0.757 sec.
--
Total time:   : 4.969 sec.

Windows:

PHP version : 5.5.3
Platform : WINNT
--
test_math : 2.516 sec.
test_stringmanipulation   : 5.297 sec.
test_loops: 1.516 sec.
test_ifelse   : 0.781 sec.
--
Total time:   : 10.11 sec.


The question is am I missing something? can somebody with more experience
advise me what to setup on php or iis to improve this?
Not to mention that the windows server has double amount of ram and cpu.

I know I know I should blame Microsoft but even so I doubt THEY can do anything
in this setup. So I doing my best on my own, I would love to have Linux on that
box but it's not up to me.





Re: [PHP-INSTALL] huge performance diff between windows and linux.

2013-09-07 Thread Keith Roberts

Yes Jorge sounds right to me.

The Apache PHP module is compiled to work as part of the 
Apache web server, whereas PHP running on IIS is external, 
hence can only be used as a CGI script.


Microsoft don't give us the source code to IIS to allow PHP 
to be compiled as an IIS server module like Apache does.


Have you tried to use the Windows version of Apache and see 
if PHP compiled into that version works quicker?


Kind Regards,

Keith Roberts


On Sat, 7 Sep 2013, Jorge Hernandez wrote:


To: Paul Roland 
From: Jorge Hernandez 
Subject: Re: [PHP-INSTALL] huge performance diff between windows and linux.

I might be wrong, but if you are using nts it means you are using IIS, try
ts with apache and compare results.

In my personal experience, PHP runs slower on IIS because it uses it as CGI.

Let us know how it goes.

Jorge_.
On Sep 7, 2013 12:15 PM, "Paul Roland"  wrote:


Hey I have an issue and I ran out of ideas.
I have two virtual servers, one running debian with compiled php and one
running server 2008 with php non thread safe version.
Both have 5.5.3 version installed and both have almoust the same config and
modules, with opcache enabled.

However I ran the benchmark script found online and I get this values:

Linux:

PHP version : 5.5.3
Platform : Linux
--
test_math : 1.677 sec.
test_stringmanipulation   : 1.625 sec.
test_loops: 0.910 sec.
test_ifelse   : 0.757 sec.
--
Total time:   : 4.969 sec.

Windows:

PHP version : 5.5.3
Platform : WINNT
--
test_math : 2.516 sec.
test_stringmanipulation   : 5.297 sec.
test_loops: 1.516 sec.
test_ifelse   : 0.781 sec.
--
Total time:   : 10.11 sec.


The question is am I missing something? can somebody with more experience
advise me what to setup on php or iis to improve this?
Not to mention that the windows server has double amount of ram and cpu.

I know I know I should blame Microsoft but even so I doubt THEY can do
anything
in this setup. So I doing my best on my own, I would love to have Linux on
that
box but it's not up to me.








--
---
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
---


Re: [PHP-INSTALL] huge performance diff between windows and linux.

2013-09-07 Thread Daniel
What about the fact that php can run as cgi/fcgi with apache?

On 9/8/13, Keith Roberts  wrote:
> Yes Jorge sounds right to me.
>
> The Apache PHP module is compiled to work as part of the
> Apache web server, whereas PHP running on IIS is external,
> hence can only be used as a CGI script.
>
> Microsoft don't give us the source code to IIS to allow PHP
> to be compiled as an IIS server module like Apache does.
>
> Have you tried to use the Windows version of Apache and see
> if PHP compiled into that version works quicker?
>
> Kind Regards,
>
> Keith Roberts
>
>
> On Sat, 7 Sep 2013, Jorge Hernandez wrote:
>
>> To: Paul Roland 
>> From: Jorge Hernandez 
>> Subject: Re: [PHP-INSTALL] huge performance diff between windows and
>> linux.
>>
>> I might be wrong, but if you are using nts it means you are using IIS,
>> try
>> ts with apache and compare results.
>>
>> In my personal experience, PHP runs slower on IIS because it uses it as
>> CGI.
>>
>> Let us know how it goes.
>>
>> Jorge_.
>> On Sep 7, 2013 12:15 PM, "Paul Roland"  wrote:
>>
>>> Hey I have an issue and I ran out of ideas.
>>> I have two virtual servers, one running debian with compiled php and one
>>> running server 2008 with php non thread safe version.
>>> Both have 5.5.3 version installed and both have almoust the same config
>>> and
>>> modules, with opcache enabled.
>>>
>>> However I ran the benchmark script found online and I get this values:
>>>
>>> Linux:
>>>
>>> PHP version : 5.5.3
>>> Platform : Linux
>>> --
>>> test_math : 1.677 sec.
>>> test_stringmanipulation   : 1.625 sec.
>>> test_loops: 0.910 sec.
>>> test_ifelse   : 0.757 sec.
>>> --
>>> Total time:   : 4.969 sec.
>>>
>>> Windows:
>>>
>>> PHP version : 5.5.3
>>> Platform : WINNT
>>> --
>>> test_math : 2.516 sec.
>>> test_stringmanipulation   : 5.297 sec.
>>> test_loops: 1.516 sec.
>>> test_ifelse   : 0.781 sec.
>>> --
>>> Total time:   : 10.11 sec.
>>>
>>>
>>> The question is am I missing something? can somebody with more
>>> experience
>>> advise me what to setup on php or iis to improve this?
>>> Not to mention that the windows server has double amount of ram and cpu.
>>>
>>> I know I know I should blame Microsoft but even so I doubt THEY can do
>>> anything
>>> in this setup. So I doing my best on my own, I would love to have Linux
>>> on
>>> that
>>> box but it's not up to me.
>>>
>>>
>>>
>>>
>>
>
> --
> ---
> Websites:
> http://www.karsites.net
> http://www.php-debuggers.net
> http://www.raised-from-the-dead.org.uk
>
> All email addresses are challenge-response protected with
> TMDA [http://tmda.net]
> ---
>


-- 
Regards,
Daniel Fenn


Re: [PHP-INSTALL] huge performance diff between windows and linux.

2013-09-07 Thread Keith Roberts

Of course.

But does PHP not run the *fastest as a compiled-in apache 
module, which is what I thought the OP was looking 
for?


Kind Regards,

Keith

On Sun, 8 Sep 2013, Daniel wrote:


To: Keith Roberts 
From: Daniel 
Subject: Re: [PHP-INSTALL] huge performance diff between windows and linux.

What about the fact that php can run as cgi/fcgi with apache?

On 9/8/13, Keith Roberts  wrote:

Yes Jorge sounds right to me.

The Apache PHP module is compiled to work as part of the
Apache web server, whereas PHP running on IIS is external,
hence can only be used as a CGI script.

Microsoft don't give us the source code to IIS to allow PHP
to be compiled as an IIS server module like Apache does.

Have you tried to use the Windows version of Apache and see
if PHP compiled into that version works quicker?

Kind Regards,

Keith Roberts


On Sat, 7 Sep 2013, Jorge Hernandez wrote:


To: Paul Roland 
From: Jorge Hernandez 
Subject: Re: [PHP-INSTALL] huge performance diff between windows and
linux.

I might be wrong, but if you are using nts it means you are using IIS,
try
ts with apache and compare results.

In my personal experience, PHP runs slower on IIS because it uses it as
CGI.

Let us know how it goes.

Jorge_.
On Sep 7, 2013 12:15 PM, "Paul Roland"  wrote:


Hey I have an issue and I ran out of ideas.
I have two virtual servers, one running debian with compiled php and one
running server 2008 with php non thread safe version.
Both have 5.5.3 version installed and both have almoust the same config
and
modules, with opcache enabled.

However I ran the benchmark script found online and I get this values:

Linux:

PHP version : 5.5.3
Platform : Linux
--
test_math : 1.677 sec.
test_stringmanipulation   : 1.625 sec.
test_loops: 0.910 sec.
test_ifelse   : 0.757 sec.
--
Total time:   : 4.969 sec.

Windows:

PHP version : 5.5.3
Platform : WINNT
--
test_math : 2.516 sec.
test_stringmanipulation   : 5.297 sec.
test_loops: 1.516 sec.
test_ifelse   : 0.781 sec.
--
Total time:   : 10.11 sec.


The question is am I missing something? can somebody with more
experience
advise me what to setup on php or iis to improve this?
Not to mention that the windows server has double amount of ram and cpu.

I know I know I should blame Microsoft but even so I doubt THEY can do
anything
in this setup. So I doing my best on my own, I would love to have Linux
on
that
box but it's not up to me.








--
---
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
---







--
---
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
---