# [RFC] Better benchmarks for PHP

- Thread: https://externals.io/message/43043
- Original archive: https://news-web.php.net/php.internals/43043
- Started by Nuno Lopes on 2009-02-14T23:06:38+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #43043 — Nuno Lopes — 2009-02-14T23:06:38+00:00

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

Hi,

Currently PHP's benchmarks are very poor. The PHP interpreter is only timed 
against bench.php. Sadly, this doesn't make use of the majority of PHP's 
features, principally OO, but also includes and variable-variables. We'd 
like to help rectify that, and have created an RFC with some initial ideas. 
It's available at http://wiki.php.net/rfc/better_benchmarks

The idea at first is not to do something perfect the first time. Rather, 
we'd like to have something quickly, so as not to lose momentum. A good 
first step might be porting some javascript benchmarks to PHP. Based on that 
experience, we can go about the larger and more difficult task of porting 
some web-apps to make representative benchmarks.

Comments, criticisms and volunteers especially welcome,

Nuno Lopes & Paul Biggar

---

## #43053 — Pierre Joye — 2009-02-15T16:05:47+00:00

URL: https://externals.io/message/43043#43053

hi,

On Sun, Feb 15, 2009 at 8:18 AM, Sebastian Bergmann
<sb@sebastian-bergmann.de> wrote:
> Nuno Lopes schrieb:
> > […]
>
>  When you do this, think about splitting each benchmark into a separate
>  file and have it run by a separate PHP process, see [1].

To split them into separate files/cases is definitively a good thing.

I'm not sure we should run them in parallel. As it makes sense for the
phpt, it may have counter effects for benchmark tests. Concurrent
executions of a given feature/extension could help (for apc and stat
cache for example), but maybe not for every part of php, or not by
default.

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

---

## #43113 — johannes@schlueters.de — 2009-02-19T13:01:03+00:00

URL: https://externals.io/message/43043#43113 · In reply to: #43043

> Currently PHP's benchmarks are very poor. The PHP interpreter is only timed 
> against bench.php. Sadly, this doesn't make use of the majority of PHP's

IS that something where some GSoC student might help? If yes, please add
it to http://wiki.php.net/gsoc/2009

johannes

---

## #43137 — Nuno Lopes — 2009-02-20T23:49:38+00:00

URL: https://externals.io/message/43043#43137 · In reply to: #43113

> 
> > […]
>
> IS that something where some GSoC student might help? If yes, please add
> it to http://wiki.php.net/gsoc/2009

Sounds like a great idea. I'll add it to the wiki.

Thanks,
Nuno
