Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38444 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28262 invoked from network); 20 Jun 2008 07:12:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2008 07:12:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:37563] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/F1-16112-C385B584 for ; Fri, 20 Jun 2008 03:11:56 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 32B29C13424 for ; Fri, 20 Jun 2008 00:12:00 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id B6524C1341F for ; Fri, 20 Jun 2008 00:11:59 -0700 (MST) Message-ID: <485B5874.9000204@chiaraquartet.net> Date: Fri, 20 Jun 2008 02:12:52 -0500 User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: internals Mailing List X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: interesting update on phar performance From: greg@chiaraquartet.net (Gregory Beaver) Hi all, I decided to run my standard phpMyAdmin test without APC enabled and got startling results from siege: Date & Time, Trans, Elap Time, Data Trans, Resp Time, Trans Rate, Throughput, Concurrent, OKAY, Failed 2008-06-20 02:02:35, 915, 60.01, 1, 0.98, 15.25, 0.02, 14.88, 915, 0 <-- phpMyAdmin on disk 2008-06-20 02:05:04, 911, 60.04, 1, 0.98, 15.17, 0.02, 14.86, 911, 0 <-- phpMyAdmin in phar with phar.cache_list That's right - they are identical in performance. With APC, there is a performance difference (I'm not sure why, to be honest, this one is really hard to profile): Date & Time, Trans, Elap Time, Data Trans, Resp Time, Trans Rate, Throughput, Concurrent, OKAY, Failed 2008-06-20 01:34:00, 2735, 59.72, 5, 0.33, 45.80, 0.08, 14.95, 2735, 0 <-- phpMyAdmin on disk 2008-06-20 01:36:11, 2409, 60.14, 5, 0.37, 40.06, 0.08, 14.95, 2409, 0 <-- phpMyAdmin in phar with phar.cache_list However, the difference is negligible. Thanks to Gopal for the mini-tutorial on using copy-on-write to implement phar.cache_list, and kcachegrind for finding the obvious bottlenecks. Greg