473,492 Members | 4,279 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

APC cache performance

Hi,
I have tested APC cache on my server with strange results.

I have analysed my statistics and seen which pages are more requested.
And I have used Junit to load test the pages, both with and without APC
cache, requesting the same set of pages 500 times.

The results have not been good. Apparently in many cases the
performance of PHP with APC cache are lower than standalone PHP.

Anyone had similar experiences?

Andres

Aug 22 '06 #1
3 2100
Rik
Andres Baravalle wrote:
Hi,
I have tested APC cache on my server with strange results.

I have analysed my statistics and seen which pages are more requested.
And I have used Junit to load test the pages, both with and without
APC cache, requesting the same set of pages 500 times.

The results have not been good. Apparently in many cases the
performance of PHP with APC cache are lower than standalone PHP.

Anyone had similar experiences?
Not really, but wether or not it's lucrative to cache a page is highly
dependant on the speed it can be build in the first place, and your exact
caching system. The building of the page might often be done quite faster
then getting it from the cache. It highly depends.
--
Grtz,

Rik Wasmus
Aug 22 '06 #2

Rik wrote:
Not really, but wether or not it's lucrative to cache a page is highly
dependant on the speed it can be build in the first place, and your exact
caching system. The building of the page might often be done quite faster
then getting it from the cache. It highly depends.
Hi Rik,
that's what I was expecting. But I have tested APC cache against some
quite heavy pages (some pages part of my drupal web site and some pages
part of phpGrabComics). Some of those pages are really slow, and
nevertheless I often cannot see an increase in performance with APC
cache.

I was wondering if it might be a configuration problem or if that's how
it is.

Andres

Aug 23 '06 #3
Andres Baravalle wrote:
<snip>
The results have not been good. Apparently in many cases the
performance of PHP with APC cache are lower than standalone PHP.
APC is compiler opcode cache. IIRC, that will be much helpful if
the script uses many includes and functions; otherwise it wouldn't help
as the optimizer is not turned on yet (in code, again IIRC). So, it
will be much helpful to profile the code than use caching system in the
first hand.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Aug 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
4802
by: emerth | last post by:
Hello all: I have read references to optimizing C code to exploit the CPU cache of <insert your favourite CPU>. Can anyone point me towards some info on the 'net that gets into techniques for...
1
3357
by: Jim | last post by:
Hi, I have a few questions regarding the cache object: Does the cache object exist through postbacks? The cache object only exists for the current request, right? Is there a way to cache...
26
6206
by: Ed L. | last post by:
Here's some of my current notions on pgsql performance tuning strictly as it relates to pgsql tuning parameters in the context of a dedicated linux or hpux server. I'm particularly focusing on...
18
2177
by: Mark | last post by:
Hello. I am looking for a way to download and cache a web page that the user has not yet requested, and write the web page to the browser cache without displaying it. My intention is to improve...
4
2728
by: RedHair | last post by:
Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C# I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If...
10
4315
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi Everybody, I'm trying to save some items in the asp.net cache, but they are removed from the cache WAY before they are supposed to (at least as I understand the documentation). I add the...
0
6240
by: pmouse | last post by:
Hi Guys, I've written a templated lru cache based on the SGI version of STL. To use the class, simply write: lru_cache<key_type, data_type, cache_length, custom_containercache; cache.insert( key,...
5
2263
by: J055 | last post by:
Hi The following code works on my develeopment machine using the VS web server. When I run the application on 2 other Windows 2003/IIS 6 servers no caching seems to take place at all. Can...
1
1270
by: robm | last post by:
Hi, We have recently upgraded an application from .NET 1.1 to .NET 2.0. It is a medium size enterprise application that makes quite heavy use of the ASP.NET caching API to improve performance. ...
3
1853
by: zaheer031 | last post by:
Hi All, How do I maximse the use of cache( both data and instruction ) in the code . I know use of loops and local variables will help but more would be of good help Thanks,
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.