Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnTWG-00024X-Uy for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Mar 2017 17:12:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cnTWG-0006sV-Eh for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Mar 2017 17:12:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cnTUj-0004BW-Su for pgsql-hackers@postgresql.org; Mon, 13 Mar 2017 17:10:54 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnTUg-0001mp-Hn for pgsql-hackers@postgresql.org; Mon, 13 Mar 2017 17:10:52 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 40D5721C2194 for ; Mon, 13 Mar 2017 20:10:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Subject: Re: WIP: Faster Expression Processing v4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1489425047; bh=B0rN9028dF0dTrM0A1Y8UQhyLap9GfdxPV9TmgofSy8=; h=To:References:From:Date:In-Reply-To; b=kJmxjYtqWEUJ4IpXKnmsC4+re8373IMi2VXyv5kepZu9VV0F6H6QhWsTJEb9IMWfU iwJ9y5GIBUz7xvmDzN20FwLHErNNYsF8n+pnme/13UxN/oKLrbTsaNXP5iB4MVXBtx pJ031Fo56AhvcR3C2tEMNR1etdiY7Jo9piiRjHGQ= To: pgsql-hackers@postgresql.org References: <20161206034955.bh33paeralxbtluv@alap3.anarazel.de> <20170209003312.rr7atqepgbrf4xqe@alap3.anarazel.de> <20170307030137.lpo4japv5oqgbqpz@alap3.anarazel.de> <2090fd00-4dec-7b42-f700-64308958504c@2ndquadrant.com> <20170313080351.4g5oubxcj4xj5y7t@alap3.anarazel.de> From: Konstantin Knizhnik Message-ID: Date: Mon, 13 Mar 2017 20:10:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170313080351.4g5oubxcj4xj5y7t@alap3.anarazel.de> Content-Type: multipart/alternative; boundary="------------4712D3609F400DC50D8264EC" X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------4712D3609F400DC50D8264EC Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 13.03.2017 11:03, Andres Freund wrote: > Hi, > > On 2017-03-12 05:40:51 +0100, Tomas Vondra wrote: >> I wanted to do a bit of testing and benchmarking on this, but 0004 seems to >> be a bit broken. > Well, "broken" in the sense that it's already outdated, because other > stuff that got merged. > > >> The patch does not apply anymore - there are some conflicts >> in execQual.c, but I think I fixed those. But then I ran into a bunch of >> compile-time errors, because some of the executor nodes still reference bits >> that were moved elsewhere. > Updated patch attached. Note that this patch has two changes I've not > yet evaluated performance-wise. I got the following results at my system with Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 16Gb RAM, TPC-H Q1/Q6 scale 10, sharedBuffers=8Gb, pg_prewarm on lineitem table projection: Q1 Q6 Master 7503 ms 1171 ms Your patch 6420 ms 1034 ms VOPS 396 ms 249 ms VOPS + patch 367 ms 233 ms -- Konstantin Knizhnik Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --------------4712D3609F400DC50D8264EC Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit

On 13.03.2017 11:03, Andres Freund wrote:
Hi,

On 2017-03-12 05:40:51 +0100, Tomas Vondra wrote:
I wanted to do a bit of testing and benchmarking on this, but 0004 seems to
be a bit broken.
Well, "broken" in the sense that it's already outdated, because other
stuff that got merged.


The patch does not apply anymore - there are some conflicts
in execQual.c, but I think I fixed those. But then I ran into a bunch of
compile-time errors, because some of the executor nodes still reference bits
that were moved elsewhere.
Updated patch attached.  Note that this patch has two changes I've not
yet evaluated performance-wise.


I got the following results at my system with Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 16Gb RAM,
TPC-H Q1/Q6 scale 10, sharedBuffers=8Gb, pg_prewarm on lineitem table projection:


Q1
Q6
Master
7503 ms 1171 ms
Your patch 6420 ms 1034 ms
VOPS
396 ms
249 ms
VOPS + patch 367 ms
233 ms


-- 
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company 
--------------4712D3609F400DC50D8264EC--