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 1psvPU-0002Lo-8j for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Apr 2023 00:59:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1psvPR-0007eQ-DA for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Apr 2023 00:59:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1psvPR-0007eH-1H for pgsql-hackers@lists.postgresql.org; Sun, 30 Apr 2023 00:59:25 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1psvPL-002cHd-PA for pgsql-hackers@postgresql.org; Sun, 30 Apr 2023 00:59:23 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-2f4c431f69cso686135f8f.0 for ; Sat, 29 Apr 2023 17:59:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682816358; x=1685408358; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=te9pHJZx+TbzeN/OYpJD5gcnnZ5UrQhw4XHuzQZ9k8Y=; b=B82Kkd2/rngYFtaoAwizx34i6masmB5gxZkRVF9I51w1zPBk+E5saehwSbgobNdX6Q aU4p8IpHI1SPfKvJpFfMl9+px8njFlnqjfo1fA6p8DdGw9LeX6AbrUB0JcegP0JK7Hjw ftmBMm9Kp8nIrsU22inQMLyTPX16LjxXzlp02p6oZnjeD4oybgOeB+evepY/QXoyEDfg mKTuzESEnnMYeEMtXb09LSxvg3CAw4q8ffXQZGfFbT8kTwGrsHusE1U5uUM9CWO5xFiA AF5dD4rdhxq6ZDdEMZ+iMViuICn+tGOPnWcjkzyQHpvan6DiblOX3pmrmWzUdetq572p Co4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682816358; x=1685408358; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=te9pHJZx+TbzeN/OYpJD5gcnnZ5UrQhw4XHuzQZ9k8Y=; b=Q8AgEyl1XBZuidHJopD5h0w+4YWkyACaySwpBuSoNZ9bBObTxngToVXmYDEbyVcOWS Ge+W1aqVteiibFNsY8ccWVswSA7jxffN/kvYk4IY6/88TvQEXH5ARGsq9jRn6OoXHJ4p C1GRGdKgk0eKuXq88tpWcfYdSbFr0GXBj6glqS2LQRkOe1zMq8KrF2cTXLapl0s+fX8Y dZw2S0BoS5nWfaazVx8VTvxgREB2d0hklt8v9DSmz4hiz8sTJd9jIrzddi3yZCPQj3Mo kstxGgus+kQfF2NYrTUWUcviASCiJuVCUoLcuLwJF6JtsJCB4a74b7y4tgq9MPPevoDD 4rZg== X-Gm-Message-State: AC+VfDztJMULd9R9mcDVNcJBQI5SdI55qjClcpgpgvaEvGnHHCNsbc/r RFiUA3flr7fb5QDxWbxZL88= X-Google-Smtp-Source: ACHHUZ6kr2LL5PUzGRY8gpNgH0XOECGvm3OvpBKdEr5VOMV8kdxhzhCCg0Mtaj31hj7XNboTNMQCrQ== X-Received: by 2002:adf:dfc4:0:b0:2ff:a6c5:2809 with SMTP id q4-20020adfdfc4000000b002ffa6c52809mr6904851wrn.28.1682816357890; Sat, 29 Apr 2023 17:59:17 -0700 (PDT) Received: from [192.168.0.13] (cpc92320-cmbg19-2-0-cust797.5-4.cable.virginm.net. [82.13.67.30]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm24718061wro.110.2023.04.29.17.59.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Apr 2023 17:59:17 -0700 (PDT) Message-ID: <46201226-51a9-e261-fe54-efca5bab4a82@gmail.com> Date: Sun, 30 Apr 2023 01:59:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 From: Anton Kirilov Subject: Re: Add PQsendSyncMessage() to libpq To: Denis Laxalde , 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> Content-Language: en-US In-Reply-To: <2612cb81-2a8b-be11-6f77-97801ea6a3ad@dalibo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, On 28/04/2023 09:08, Denis Laxalde wrote: > Michael Paquier a écrit : >> Speaking of which, what was the performance impact of your application >> once PQflush() was moved out of the pipeline sync?  Just asking for >> curiosity.. > > I have no metrics for that; but maybe Anton has some? I did a quick check using the TechEmpower Framework Benchmarks ( https://www.techempower.com/benchmarks/ ) - they define 4 Web application tests that are database-bound. Everything was running on a single machine, and 3 of the tests had an improvement of 29.16%, 32.30%, and 41.78% respectively in the number of requests per second (Web application requests, not database queries), while the last test regressed by 0.66% (which I would say is practically no difference, given that there is always some measurement noise). I will try to get the changes from my patch tested in the project's continuous benchmarking environment, which has a proper set up with 3 servers (client, application server, and database) connected by a 10GbE link. Best wishes, Anton Kirilov