Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78247 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97359 invoked from network); 22 Oct 2014 20:12:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2014 20:12:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.244 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.244 imap1-3.ox.privateemail.com Received: from [198.187.29.244] ([198.187.29.244:35093] helo=imap1-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/36-63701-3AF08445 for ; Wed, 22 Oct 2014 16:12:20 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 3767AB0008F; Wed, 22 Oct 2014 16:12:17 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xcYRgm_WDOeF; Wed, 22 Oct 2014 16:12:17 -0400 (EDT) Received: from oa-res-26-28.wireless.abdn.ac.uk (oa-res-26-28.wireless.abdn.ac.uk [137.50.26.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 74311B0008E; Wed, 22 Oct 2014 16:12:15 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: Date: Wed, 22 Oct 2014 21:12:13 +0100 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <8C47FA53-0964-49C0-963C-332A936348A5@ajf.me> To: Dmitry Stogov X-Mailer: Apple Mail (2.1990.1) Subject: Re: [PHP-DEV] [RFC] Big Integer Support From: ajf@ajf.me (Andrea Faulds) > On 21 Oct 2014, at 09:35, Dmitry Stogov wrote: >=20 > I expect, it'll make some slowdown for all PHP scripts, independently, = if they use BIGINT or not. > I'll try to take a deeper look into the patch later... >=20 > Could you provide some benchmark results, comparing your patch with = master? I finally made the requested benchmarks. There=E2=80=99s barely a = noticeable difference, though the bigint branch is apparently marginally = faster (most likely from getting rid of fast_increment_function): master bigint 0.344788074 0.339091063 0.34658289 0.361176014 0.376623154 0.346175194 0.35006094 0.359763861 0.352533817 0.341754198 0.354025841 0.357409 0.360356092 0.379124165 0.367921829 0.351316929 0.370724916 0.373735189 0.351090908 0.346349001 0.355952978 0.356275797 average 0.357332858 0.355651855 (Times in seconds, smaller is better.) Script: I ran the script several times, then took the results and put them into = Excel to produce the above table with its averages. So common scripts are either unaffected, or will run ever-so-slightly = faster. -- Andrea Faulds http://ajf.me/