Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q0tFk-0006Jp-Pb for pgsql-hackers@arkaria.postgresql.org; Mon, 22 May 2023 00:18:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q0tFj-0007KV-Kf for pgsql-hackers@arkaria.postgresql.org; Mon, 22 May 2023 00:18:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q0tFj-0007KK-8V for pgsql-hackers@lists.postgresql.org; Mon, 22 May 2023 00:18:19 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q0tFb-001FyU-DI for pgsql-hackers@postgresql.org; Mon, 22 May 2023 00:18:18 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f475366514so35672485e9.2 for ; Sun, 21 May 2023 17:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684714690; x=1687306690; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=I9v4MsDP6214eHJNB6yPFXzOBsel+14l667E7aa4e9Y=; b=m7fgBCn+BKmlxdIPnr4AEgMLcmeXuxRI71PBIJ35GSoQWBIWkDzT9ImA2EeqmZCU5Z ry2e/9/VyTHa3VyQuM81nOrrwJvnOaJYrC+9vBCoSZVRgjFy7h5mozcFFKz19r1PTw8F Iqo61EkT1IH92tm345xNMcvcNd7qrmOYvBkfv8/vMwsQuACuO0O517SWxDX9VHMHUX1V Bu+lmGvlpUn58pyx/pfHUHXd0cI5sIeUomOduDQiSdvM6gV1QNYML3mfTeL0RtuAoEn/ oWAP8p5KZyo2pw9EXerch+83k5kweAyq9aY0OUwtjieKP68CApASpFd+5kqmFZo+1UbD m+OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684714690; x=1687306690; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I9v4MsDP6214eHJNB6yPFXzOBsel+14l667E7aa4e9Y=; b=lbEHqv/YA7NcwA+J4Iy757ArgI7T8XOlb8+2Qy+fiomfBf/6G2Qt2ndj6dx5h53SUR G1mcSypSCTTutwjkLhRd7KZ3i+MvEtqbRF2KjWEqcZmK39Ybkd7bjrpmAt6ikmDrLtmR WNExeWAjq0uwOSG2OmWLIID3ILFEJtWbm5i6tCCEytiMvo40hlX1eqqMMypEw1XY93zL eFjcVpvaN9hb/fdLE8MGMeSi7SGI1uy6IYrQd2HRszPyJTMUoCp2Db5NWBUCduMiP2sd 2uAxaRTt2NxI0BSfYyV6qcE7PIuPEWGJXYBCUP0dxgpG8ZNvlGWXREw9v9IJ4IPKNmzJ gtXg== X-Gm-Message-State: AC+VfDyH432GHXxaktwroHSORVp6vVdAzSLh+h2gNMIdx9jqrsXrk2YD wcspzitbWDq8jqoSaVb56W8= X-Google-Smtp-Source: ACHHUZ4fDVr3Kpvf0hJTHFO4usJmfuA7tCRQTIn0LxyhxiN1Tc1KQmO39Yp4p6hRN2qkeNyNqoC4xg== X-Received: by 2002:a7b:c311:0:b0:3f4:e4cd:f6e with SMTP id k17-20020a7bc311000000b003f4e4cd0f6emr5955501wmj.17.1684714690164; Sun, 21 May 2023 17:18:10 -0700 (PDT) Received: from [10.0.0.2] (cpc92794-cmbg19-2-0-cust554.5-4.cable.virginm.net. [81.96.86.43]) by smtp.gmail.com with ESMTPSA id l17-20020adfe591000000b003079c402762sm5870071wrm.19.2023.05.21.17.18.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 May 2023 17:18:09 -0700 (PDT) Message-ID: Date: Mon, 22 May 2023 01:18:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Add PQsendSyncMessage() to libpq Content-Language: en-US To: Michael Paquier Cc: pgsql-hackers@postgresql.org References: <991b791e-bc32-7d14-89f6-cb66c1b52895@dalibo.com> <1eb1a3f4-a820-9848-f73b-4456608c9166@dalibo.com> <2612cb81-2a8b-be11-6f77-97801ea6a3ad@dalibo.com> <46201226-51a9-e261-fe54-efca5bab4a82@gmail.com> From: Anton Kirilov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, On 02/05/2023 00:55, Michael Paquier wrote: > Well, these are nice numbers. At ~1% I am ready to buy the noise > argument, but what would the range of the usual noise when it comes to > multiple runs under the same conditions> I managed to get my patch tested in the TechEmpower Framework Benchmarks continuous benchmarking environment, and even though it takes roughly a week to get a new set of results, now there had been a couple of runs both with and without my changes. All 4 database-bound Web application tests (single query, multiple queries, fortunes, and data updates) saw improvements, by approximately 8.94%, 0.64%, 9.54%, and 2.78% respectively. The standard errors were 0.65% or less, so there was practically no change in the second test. However, I have seen another implementation experience a much larger improvement (~6.69%) in that test from essentially the same optimization, so I think that my own code has another bottleneck. Note that these test runs were not in the same benchmarking environment as the one I used previously for a quick check, so the values differ. Also, another set of results should become available in a week or so (and would be based on my optimization). Links to the test runs: https://www.techempower.com/benchmarks/#section=test&runid=1ecf679a-9686-4de7-a3b7-de16a1a84bb6&l=zik0zi-35r&w=zhb2tb-zik0zj-zik0zj-sf&test=db https://www.techempower.com/benchmarks/#section=test&runid=aab00736-445c-4b7f-83b5-451c47c83395&l=zik0zi-35r&w=zhb2tb-zik0zj-zik0zj-sf&test=db https://www.techempower.com/benchmarks/#section=test&runid=bc7f7570-a88e-48e3-9874-06d7dc0a0f74&l=zik0zi-35r&w=zhb2tb-zik0zj-zik0zj-sf&test=db https://www.techempower.com/benchmarks/#section=test&runid=e6dd1abd-7aa2-4846-9b44-d8fd8a23d385&l=zik0zi-35r&w=zhb2tb-zik0zj-zik0zj-sf&test=db (ordered chronologically; the first 2 did not include my optimization) Best wishes, Anton Kirilov