Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115435 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27361 invoked from network); 16 Jul 2021 09:40:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jul 2021 09:40:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9FC111804D8 for ; Fri, 16 Jul 2021 03:04:22 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 16 Jul 2021 03:04:22 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id q4so13270826ljp.13 for ; Fri, 16 Jul 2021 03:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d3aIurJzeUoataZT75GF+IKRnFGbF3QkAMptb2Pen1U=; b=lYX9qbPzsXzlsByzJDNf0FOJFIRSvxUSGoe/Y7cL8w2ViKb52xp8O0/wOSRB3Lia6o mBBhlJtXB7a+Smr5aYKeZ6AUp8H3aaFXqifNfsYClBHJFRoKPj+RVxeNlwwRX/D/9Jzw 8My1crxZa6hQjKmDqDyjbDTczMTmloJpRf6gnX5Fv42hPrj41JIpIk7Q2SFV33V+6seB r3Zx4tpXriZUc7nRSr9pc5S8rN8oGURShRGy6rdsVeYbi4/1rNjQsBbbivux0hModUDH ScKeNkFgvPZzSlMXKl0HzO9ZxR64xkslLIe9XydpZkvJnaFYIHccSEY623VlV322PEDz /uww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d3aIurJzeUoataZT75GF+IKRnFGbF3QkAMptb2Pen1U=; b=QpZgdN6zY33KRYvH3SNmTuGvEB739aHvRfYqbD8+5ubyNLZ9zmp9VCoGNY0WrpxdNf Op41kRkjtm7hsjlNxQp3Jp9qjrcrWwU0OHRVnnH8IERZwg/XXZDDP4IuzC+4dBaBA3fN XRWCAQttkM/nu24j3axUi9K4owS74CNY6KxLeWJ8rtt5SOrsyztWsQiuK6WpDzZRuydy Fx/zwq6lsPy38FJiYg5wX71NI5VSNMOGP8aDTnT8GpgLIjCTkWULTKWK5w+yq16OlIkV tcNfVLg+q1nwCMYhBajxG7vymPyUf52IiqdUqNM14gdpnAcv1GIEYSEqBWsn0oNaCtr8 2+lA== X-Gm-Message-State: AOAM531wENyA3LGbsf36k7qsBKH7sT3NYfQsgPH3TUgGaoUo5vdgpyh5 PUHMmfH/jUrmX7R3KG3637GHWqH+1HM6oPUWI34= X-Google-Smtp-Source: ABdhPJzR0FZ+ARHcbZ99tdIzgrBzU3IVMpcDcOmXsWeXfex8xx8TfmGjScRxOoworUkKUgi+q5vE0UGd7E+fLbKH8CE= X-Received: by 2002:a2e:911a:: with SMTP id m26mr8536609ljg.109.1626429860752; Fri, 16 Jul 2021 03:04:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 16 Jul 2021 12:04:04 +0200 Message-ID: To: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= Cc: Craig Francis , PHP internals Content-Type: multipart/alternative; boundary="0000000000001a323305c73ab66f" Subject: Re: [PHP-DEV] [RFC] [VOTE] is_literal From: nikita.ppv@gmail.com (Nikita Popov) --0000000000001a323305c73ab66f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jul 9, 2021 at 12:23 AM M=C3=A1t=C3=A9 Kocsis wrote: > Hi Nikita, > > I performed a few other benchmarks in order to provide a little bit more > insights into the performance aspect of the RFC. My latest measurement is > using the same setup as the previous > one, although I made a few smaller changes in the process (e.g. changing > the order of the tests). So at the end, I got the following results: > > - Laravel demo app: +0.1% > - Symfony demo app: +0.43% > - bench.php: +0.4% > - custom concat bench: +3.89% > > The results are comparing the "literals" branch with the commit in master > on which Joe's work is based. As far as I remember, the simpler variant o= f > is_literals had a 0.1% slowdown > in case of Symfony, and 2.09% in case of the custom concat benchmark. > Personally, I think even the current numbers are acceptable, especially > because PHP 8.1 is going to be > roughly 30% faster than PHP 8.0 according to my benchmark in case of the > Symfony demo app. Laravel's result is very similar, but I don't remember > about the exact numbers. > Thanks M=C3=A1t=C3=A9! While I'm not really happy with the technical implic= ations, your numbers clearly show that there is barely any impact in practice. I've dropped my "no" vote for that reason. Regards, Nikita > --0000000000001a323305c73ab66f--