Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11975 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44966 invoked by uid 1010); 6 Aug 2004 21:01:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44877 invoked from network); 6 Aug 2004 21:01:49 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 6 Aug 2004 21:01:49 -0000 Received: (qmail 11174 invoked from network); 6 Aug 2004 21:01:47 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 6 Aug 2004 21:01:47 -0000 Message-ID: <5.1.0.14.2.20040806140026.02cc9ec8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 06 Aug 2004 14:01:39 -0700 To: "Sara Golemon" ,internals@lists.php.net In-Reply-To: <20040806160028.37314.qmail@pb1.pair.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Everyone on the road? From: andi@zend.com (Andi Gutmans) At 08:59 AM 8/6/2004 -0700, 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. > >A SAPI which supports the request time record would appear to take slightly >longer than a SAPI which does not (the time between processing the request >in the web server and passing off to PHP {plus compile, plus execute down to >that instructuion}) > > > Do NOT use this method for benchmarking between >different webservers, inconsistent implementations could give unexpected >results. > If you call it get_request_start_time() it should make it clearer what it means. I guess we could put it into SAPI I don't see any disadvantage although in any case, doing it one more time per-request wouldn't be that bad either. I hope to have more time towards the end of next week and then I can hopefully make this improvement. Andi