# APC benchmark

- Thread: https://externals.io/message/60657
- Original archive: https://news-web.php.net/php.internals/60657
- Started by Mohammad Saleh on 2012-05-22T15:18:13+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #60657 — Mohammad Saleh — 2012-05-22T15:18:13+00:00

URL: https://externals.io/message/60657#60657

All,

I was looking for a standard benchmark script that I could run with and without apc caching to see the general gains.
Is there something that is used by the internals team for such tests?
If not, are there any recommendations?


Thanks,
Mohammad

---

## #60658 — Tom Boutell — 2012-05-22T15:38:56+00:00

URL: https://externals.io/message/60657#60658 · In reply to: #60657

You might be better off testing a nontrivial case like a framework
based web application's homepage with and without APC turned on for
100 fetches. That's where APC really shines.


>
> All,
>
> I was looking for a standard benchmark script that I could run with and without apc caching to see the general gains.
> Is there something that is used by the internals team for such tests?
> If not, are there any recommendations?
>
>
> Thanks,
> Mohammad
>



-- 
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

---

## #60659 — Mohammad Saleh — 2012-05-22T16:46:49+00:00

URL: https://externals.io/message/60657#60659

Thank you for the feedback Tom.

I actually created a simulated test with jmeter and wordpress and was testing that with and without apc (simulation of a set of authors and readers).
Once I turned on APC, I realized my db server became a bottleneck and I was not able to test the max throughput.

Your scenario removes the db and focuses strictly on the cached pages, so I will give that a try.

Thanks and if there are any other suggestions, please do let me know!

- Mohammad

> Date: Tue, 22 May 2012 11:38:56 -0400
> From: tom@punkave.com
> To: internals@lists.php.net
> Subject: Re: [PHP-DEV] APC benchmark
> 
> You might be better off testing a nontrivial case like a framework
> based web application's homepage with and without APC turned on for
> 100 fetches. That's where APC really shines.
> 
> 
> > […]
> 
> 
> 
> -- 
> Tom Boutell
> P'unk Avenue
> 215 755 1330
> punkave.com
> window.punkave.com

---

## #60660 — Tom Boutell — 2012-05-22T17:42:55+00:00

URL: https://externals.io/message/60657#60660 · In reply to: #60659

Including Wordpress in your test does sound fairly realistic actually,
but it's a good sign that something else becomes the bottleneck with
APC enabled (:


> Thank you for the feedback Tom.
>
> I actually created a simulated test with jmeter and wordpress and was
> testing that with and without apc (simulation of a set of authors and
> readers).
> Once I turned on APC, I realized my db server became a bottleneck and I was
> not able to test the max throughput.
>
> Your scenario removes the db and focuses strictly on the cached pages, so I
> will give that a try.
>
> Thanks and if there are any other suggestions, please do let me know!
>
> - Mohammad
>
> > […]
>
> > […]



-- 
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

---

## #60669 — johannes@schlueters.de — 2012-05-23T14:40:33+00:00

URL: https://externals.io/message/60657#60669 · In reply to: #60657

> I was looking for a standard benchmark script that I could run with
> and without apc caching to see the general gains.
> Is there something that is used by the internals team for such tests?
> If not, are there any recommendations?

What information do you want to gain from that? A general benchmark is
not that useful for you as a user. Results heavily depend on the
application, the hardware and the usage patterns of the application. A
benchmark like "my application runs 3 times faster while serving 5-times
more users in parallel" tells nothing.

If you want to test an APC patch this depends a bit on the patch etc.
est provide the patch.

johannes
