Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2160 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90705 invoked from network); 4 Jun 2003 16:08:02 -0000 Received: from unknown (HELO cypress.he.net) (216.218.197.2) by pb1.pair.com with SMTP; 4 Jun 2003 16:08:02 -0000 Received: from procata.com (modem-79.ro.clients.m33access.com [205.244.161.79]) by cypress.he.net (8.8.6p2003-03-31/8.8.2) with ESMTP id JAA17891 for ; Wed, 4 Jun 2003 09:08:00 -0700 Date: Wed, 4 Jun 2003 12:01:44 -0400 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed To: internals@lists.php.net Content-Transfer-Encoding: 7bit Message-ID: X-Mailer: Apple Mail (2.552) Subject: Benchmarking 4.3.2 vs 4.1.2 From: jeff@procata.com (Jeff Moore) I remember a discussion about system calls here earlier. What is the status of that? I've been doing some tests and have found that this code runs about 2.5 times slower under 4.3.2 than it did on 4.1.2 on the same machine (running OS X): I did some tests with fs_usage to check file system calls and found that for a zero length test.php file, 4.3.2 makes the following additional calls beyond 4.1.2: 1 chdir /Library/WebServer/Documents/rot/bench 1 fchdir 12 fstat 5 fstatfs 5 getdirentries 7 lseek O=0x00000000 1 lstat test.php 6 lstat (., .., ../.., etc. 6 open (., .., ../.., etc) 1 stat The fread example above made the following additional calls in 4.3.2 beyond 4.1.2: 2 chdir /Library/WebServer/Documents/rot/bench 2 fchdir 32 fstat 15 fstatfs 15 getdirentries 16 lseek O=0x00000000 1 lstat file.html 1 lstat test.php 18 lstat (., .., ../.., etc.) 17 open (., .., ../.., etc) 4 stat 1 stat . some of my counts my be slightly off - I counted them by hand.