Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39046 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11737 invoked from network); 17 Jul 2008 10:11:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2008 10:11:44 -0000 Authentication-Results: pb1.pair.com header.from=runar.b.olsen@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=runar.b.olsen@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: runar.b.olsen@gmail.com X-Host-Fingerprint: 64.233.182.190 nf-out-0910.google.com Received: from [64.233.182.190] ([64.233.182.190:44887] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/00-09941-7DA1F784 for ; Thu, 17 Jul 2008 06:11:36 -0400 Received: by nf-out-0910.google.com with SMTP id b11so2042550nfh.13 for ; Thu, 17 Jul 2008 03:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=t6VeUrtPM54RCL6gm+rrsF0oCANWRsIXd+fQbCwKH/E=; b=SgCZDizuMhT0HaEcNw23TTzXx3tCled4oLUrK4lKl3W8qVdcO826DRE1QxikhPugqS sV8Y7ZgMMOw/GMU9TruoymZpMMVxfTsgUHXzknJ8WfZ2pTJPYA8vHcX24leF/RwIO3E9 yXHM0SET5BxS0QGnIv30zxAIPmcUi/3Eu0TlM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=c/fzhghpBwrFBAYraDg/6O07mMHdm2qNe21ZYD8BVyd3SeS3Souegz60D7IDLWgrkP uipTjm7m3sUjOXIQLSXDbtfb5ro1Q8HCjSZZ9HPo4FWPXIsta78AdrCW7nAlFraUcLjs 5VwmACGCpX0Y869q8a0L9St0AL4QGyh7+y6Tk= Received: by 10.210.12.18 with SMTP id 18mr968517ebl.109.1216289491727; Thu, 17 Jul 2008 03:11:31 -0700 (PDT) Received: from ?192.168.80.150? ( [89.20.232.244]) by mx.google.com with ESMTPS id y37sm11642017iky.8.2008.07.17.03.11.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Jul 2008 03:11:30 -0700 (PDT) Message-ID: <487F1ACE.6070407@gmail.com> Date: Thu, 17 Jul 2008 12:11:26 +0200 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: "'internals@lists.php.net'" References: <3B058FC38F54184DB97A62574F17828302E47F8F@magdeburg2.nasa30.com> In-Reply-To: <3B058FC38F54184DB97A62574F17828302E47F8F@magdeburg2.nasa30.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP vs PHP NTS benackmark (win32) From: runar.b.olsen@gmail.com (Runar Olsen) Hi, That should be correct as there is no time spent keeping internal variables thread safe. Mario Brandt skrev: > I made a test on my console (cmd.exe) > ENV: WinXP SP 3 all updates, PHP 5.2.6 / PHP 5.2.6 non thread safe (NTS) > Intel Celeron 2.4 GHz 1 GB DDR Ram > > It showed that the non thread safe is faster than the thread safe version. > > > NTS > > Benchmark Time Peak Memory Peak Memory (Real) > ------------------------------------------------------------------- > ./benchmarks\ackermann 1.744 428704 524288 > ./benchmarks\array 0.067 6583320 7340032 > ./benchmarks\array2 0.059 6589168 7340032 > ./benchmarks\array3 0.841 364848 524288 > ./benchmarks\fibonacci 3.622 77976 262144 > ./benchmarks\hash 0.150 3921712 4194304 > ./benchmarks\hash2 0.130 144912 262144 > ./benchmarks\heapsort 0.410 1639960 1835008 > ./benchmarks\mandel 1.445 83352 262144 > ./benchmarks\mandel2 1.716 80312 262144 > ./benchmarks\matrix 0.410 357432 524288 > ./benchmarks\nestedloop 0.742 80368 262144 > ./benchmarks\sieve 0.532 1403920 1572864 > ./benchmarks\simple 0.425 77768 262144 > ./benchmarks\simplecall 0.553 76656 262144 > ./benchmarks\simpleucall 0.881 77344 262144 > ./benchmarks\simpleudcall 1.188 77440 262144 > ./benchmarks\strcat 0.060 857848 1310720 > > > TS > > Benchmark Time Peak Memory Peak Memory (Real) > ------------------------------------------------------------------- > ./benchmarks\ackermann 2.406 674272 786432 > ./benchmarks\array 0.078 6583664 7340032 > ./benchmarks\array2 0.065 6591032 7340032 > ./benchmarks\array3 0.861 365352 524288 > ./benchmarks\fibonacci 4.835 77720 262144 > ./benchmarks\hash 0.234 3922136 4194304 > ./benchmarks\hash2 0.155 145416 262144 > ./benchmarks\heapsort 0.476 1640912 1835008 > ./benchmarks\mandel 1.531 84552 262144 > ./benchmarks\mandel2 1.849 80840 262144 > ./benchmarks\matrix 0.365 357984 524288 > ./benchmarks\nestedloop 0.811 80624 262144 > ./benchmarks\sieve 0.531 1404096 1572864 > ./benchmarks\simple 0.454 77736 262144 > ./benchmarks\simplecall 0.743 76472 262144 > ./benchmarks\simpleucall 1.285 77160 262144 > ./benchmarks\simpleudcall 1.545 77256 262144 > ./benchmarks\strcat 0.061 858000 1310720 > > > with PHP6 the test failed > > regards > Mario > >