APC cache performance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andres  Baravalle

    #1

    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

  • Rik

    #2
    Re: APC cache performance

    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


    Comment

    • Andres  Baravalle

      #3
      Re: APC cache performance


      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

      Comment

      • R. Rajesh Jeba Anbiah

        #4
        Re: APC cache performance

        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/

        Comment

        Working...