Re: Everyone on the road?
| From: | Rasmus Lerdorf | Date: | Fri, 06 Aug 2004 16:37:45 +0000 |
| Subject: | Re: Everyone on the road? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11969@lists.php.net to get a copy of this message | ||
On Fri, 6 Aug 2004, Sara Golemon wrote:
> > I meant to mention this a while ago, but it slipped my mind. Most web
> > servers do that time() call for us at the beginning of the request because
> > they need it for logging purposes. I think the right approach here is to
> > add a SAPI call to expose this. For Apache-1.3 it is right in the
> > request_rec in the request_time field. Obviously the SAPI call would
> > simply do the time() call itself if it can't fetch it from somewhere
> > internally.
> >
> It sounds good enough, but I'd worry about people using this in
> incompletely-thought-out benchmarking scripts.
Adding a SAPI call doesn't mean exposure to scripts, so I don't really see
how this is relevant. Sure, someone could write a PHP extension to
benchmark different servers, but what are the chances of that? And if
they are advanced enough to write an extension, they are smart enough to
normalize the request start times.
-Rasmus