Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11969 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19706 invoked by uid 1010); 6 Aug 2004 16:37:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19681 invoked from network); 6 Aug 2004 16:37:44 -0000 Received: from unknown (HELO colo.lerdorf.com) (66.198.51.121) by pb1.pair.com with SMTP; 6 Aug 2004 16:37:44 -0000 Received: from rasmus2.corp.yahoo.com (rasmus2.corp.yahoo.com [207.126.233.18]) by colo.lerdorf.com (8.12.11/8.12.11/Debian-5) with ESMTP id i76GbhFP008028; Fri, 6 Aug 2004 09:37:43 -0700 Date: Fri, 6 Aug 2004 09:37:45 -0700 (PDT) X-X-Sender: rasmus@t42p To: Sara Golemon cc: internals@lists.php.net In-Reply-To: <20040806160028.37314.qmail@pb1.pair.com> Message-ID: References: <5.1.0.14.2.20040724003444.034ea690@127.0.0.1> <5.1.0.14.2.20040724003444.034ea690@127.0.0.1> <5.1.0.14.2.20040725104701.02789d40@127.0.0.1> <20040806160028.37314.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Everyone on the road? From: rasmus@php.net (Rasmus Lerdorf) 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