FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » OPcache in php5.5.1 on Windows
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
OPcache in php5.5.1 on Windows [message #182365] Wed, 31 July 2013 12:50 Go to previous message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma:
Senior Member
Hello cpl,

Does anybody in here have experience with OPCache under windows?
http://nl3.php.net/opcache
It is bundled in PHP5.5 (and via PECL in earlier versions).

I installed PHP5.5.1 on a SBS2008 server under IIS7 (fast cgi).
After activating opcache, I used the suggested directives in php.ini, as
described here:
http://nl3.php.net/manual/en/opcache.configuration.php

It does show up now in phpinfo() as:

Opcode Caching Up and Running
Optimization Enabled
Startup OK
Shared memory model win32
Cache hits 12
Cache misses 15
Used memory 5752832
Free memory 61356032
Wasted memory 0
Cached scripts 15
Cached keys 21
Max keys 3907
OOM restarts 0
Hash keys restarts 0
Manual restarts 0

So far so good (I think).


Now I wonder: Is there any way to find out WHAT kind of performance gain
it gives?

I have a few ideas but I am not very enthusiastic about any of them:

1) Testing the time spend in the script: Not good, that is exclusive the
time needed to interpret the script (I expect, but I couldn't find a
decisive answer yet. If anybody knows, let me know please)

2) From end-user experience: Not good: If I time the responsetimes with
a clockwatch on my browser, I merely measure noise I expect: time spend
on the network, is the server busy doing other stuff, is the database
busy, etc.

3) Making a huge complicated script, and test it. Hoping the time needed
to interpret it is so long I can measure the difference as described in
2. (I haven't done this yet)

What would be a good way to test the speedgains by using OPCache?
Any ideas?

Thanks for your time.

Regards,
Erwin Moller



--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Validate Radio Buttons?
Next Topic: imagecreatefromstring - errort test never fails???
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 16:24:07 GMT 2024

Total time taken to generate the page: 0.05526 seconds