Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29783 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2032 invoked by uid 1010); 25 May 2007 23:06:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2016 invoked from network); 25 May 2007 23:06:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2007 23:06:41 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:48449] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/71-23498-10C67564 for ; Fri, 25 May 2007 19:06:41 -0400 Received: from trainburn-lm.corp.yahoo.com (trainburn-lm.corp.yahoo.com [207.126.233.11]) (authenticated bits=0) by mail.lerdorf.com (8.14.1/8.14.1/Debian-4) with ESMTP id l4PN6ajk021591 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 25 May 2007 16:06:37 -0700 Message-ID: <46576BFD.1050606@lerdorf.com> Date: Fri, 25 May 2007 16:06:37 -0700 User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Uwe Schindler CC: "'Stanislav Malyshev'" , "'PHP Internals'" References: <4657170E.8060701@zend.com> <46571CCC.4030801@zend.com> <46573710.6070800@lerdorf.com> <46573903.2060204@zend.com> <000001c79f12$9b6650b0$0201a8c0@VEGA> <465756D4.1080604@lerdorf.com> <000001c79f19$05a337d0$0201a8c0@VEGA> <46576108.6070300@lerdorf.com> <000101c79f1c$8499ef90$0201a8c0@VEGA> <46576557.2040902@lerdorf.com> In-Reply-To: <46576557.2040902@lerdorf.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.2/3302/Fri May 25 12:37:03 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] TSRM changes broke windows compile From: rasmus@lerdorf.com (Rasmus Lerdorf) I did a bit of rather unscientific benchmarking using my old bench_main.php script which tries to be a bit more than a microbenchmark. The fastest run for each were: time(0): 10000 fetches, 5 max parallel, 2.73e+07 bytes, in 15.314 seconds 2730 mean bytes/connection 652.998 fetches/sec, 1.78268e+06 bytes/sec msecs/connect: 0.971112 mean, 9.15 max, 0.12 min msecs/first-response: 5.875 mean, 865.369 max, 0.948 min HTTP response codes: code 200 -- 10000 sapi_get_request_time(TSRMLS_C): 10000 fetches, 5 max parallel, 2.73e+07 bytes, in 14.6932 seconds 2730 mean bytes/connection 680.588 fetches/sec, 1.85801e+06 bytes/sec msecs/connect: 0.983568 mean, 7.28 max, 0.114 min msecs/first-response: 5.61483 mean, 794.504 max, 0.933 min HTTP response codes: code 200 -- 10000 The standard of deviation was rather high though. Over 10 runs on each the averages were: time: 646 req/sec sapi: 659 req/sec This is on my MBP with Ubuntu 7.04 running in vmware fusion with one of the cores dedicated to the vm to mostly make it immune to other things happening on the machine apart from IO contention. The io contention should be minimal due to APC being installed and warmed up before each run so apart from the stat calls, there is no disk io involved. The bench script itself is here: http://lerdorf.com/php/bench.tar.gz -Rasmus