Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54304 invoked from network); 16 May 2014 00:12:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2014 00:12:56 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.83 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.83 smtp83.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.83] ([108.166.43.83:44107] helo=smtp83.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/00-53519-70855735 for ; Thu, 15 May 2014 20:12:56 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp3.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 9C1465096B for ; Thu, 15 May 2014 20:12:52 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp3.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 64B2750AA4 for ; Thu, 15 May 2014 20:12:52 -0400 (EDT) Message-ID: <53755803.2020909@sugarcrm.com> Date: Thu, 15 May 2014 17:12:51 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: some phpng benchmarks From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! I've recently succeeded in running SugarCRM (if you don't know what it is, it is a big app, lots of code, lots of memory used, lots of db queries, etc.) on phpng and did some benchmarks, and I was asked to share the results with everybody. So here it goes: Benchmark setup: 1. lighttpd with fcgi driver 2. Single process PHP: sapi/cgi/php-cgi -b 9999 3. ab as benchmark driver, like: ab -k -c 1 -n 100 -C 'PHPSESSID=223876233264873232523' 'http://127.0.0.1:8080/sugar674u/index.php?module=Accounts&action=index&ajax_load=1' 4. SugarCRM 6.7.4 5. opcache and php config as described in wiki here: https://wiki.php.net/phpng Benchmark 1: DetailView on Sugar. This view has a lot of data and SQL queries. Results: MASTER: ------- Total transferred: 21022400 bytes HTML transferred: 20957000 bytes Requests per second: 3.51 [#/sec] (mean) Time per request: 284.997 [ms] (mean) Transfer rate: 720.32 [Kbytes/sec] received PHPNG: ----- Total transferred: 21022400 bytes HTML transferred: 20957000 bytes Requests per second: 4.70 [#/sec] (mean) Time per request: 212.929 [ms] (mean) Transfer rate: 964.12 [Kbytes/sec] received Benchmark 2: ListView on Sugar. This view is smaller since it has only one data set (list of records) Results: MASTER: ------ Total transferred: 12386000 bytes HTML transferred: 12320600 bytes Requests per second: 8.64 [#/sec] (mean) Time per request: 115.692 [ms] (mean) Transfer rate: 1045.45 [Kbytes/sec] received PHPNG: ----- Total transferred: 12386000 bytes HTML transferred: 12320600 bytes Requests per second: 12.03 [#/sec] (mean) Time per request: 83.153 [ms] (mean) Transfer rate: 1454.55 [Kbytes/sec] received So, we have 25-30% improvement, which definitely sounds very good. Of course, these benchmarks are single-thread no-load benchmarks on single Will also look a bit later into seeing how it behaves memory-wise (it uses a lot of memory usually so may be interesting to see what happens there) and how latest version (which has shorter and leaner requests) behaves. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227