Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyqIv-000864-I6 for pgsql-jdbc@arkaria.postgresql.org; Fri, 14 Apr 2017 01:45:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cyqIv-00075l-2O for pgsql-jdbc@arkaria.postgresql.org; Fri, 14 Apr 2017 01:45:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cykpb-0006dL-AX for pgsql-jdbc@postgresql.org; Thu, 13 Apr 2017 19:55:03 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cykpV-0004HG-L0 for pgsql-jdbc@postgresql.org; Thu, 13 Apr 2017 19:55:02 +0000 Received: from mfilter20-d.gandi.net (mfilter20-d.gandi.net [217.70.178.148]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 1CD19172093 for ; Thu, 13 Apr 2017 21:54:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter20-d.gandi.net Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter20-d.gandi.net (mfilter20-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id KlaiwauS3dvh for ; Thu, 13 Apr 2017 21:54:54 +0200 (CEST) X-Originating-IP: 10.58.1.144 Received: from webmail.gandi.net (webmail4-d.mgt.gandi.net [10.58.1.144]) (Authenticated sender: rado@edno.moe) by relay4-d.mail.gandi.net (Postfix) with ESMTPA id 4B1711720BE for ; Thu, 13 Apr 2017 21:54:54 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 13 Apr 2017 22:54:54 +0300 From: zloster To: pgsql-jdbc@postgresql.org Subject: Driver performance improvements - kudos to the maintainers and the contributors Message-ID: X-Sender: more@edno.moe User-Agent: Roundcube Webmail/1.1.2 X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi all, I don't know if you are familiar with the TechEmpower Framework Benchmarks project. I'm keeping an eye on it. If you dig into the numbers and understand the test intentions and limitations it gets quite interesting. The occasion to write this is very recent comment from a TechEmpower team guy: > bhauer commented: > Yes! The database tests are intended to be a brutal exercise of the > database drivers and ORM (where applicable). You're > right that it stands to reason that tuning in the driver will show up > as a significant gain in these tests, assuming > that in so doing you don't reach a different bottleneck in the > framework itself. Nevertheless, the delta in this > particular test was a big surprise. The Postgres JDBC driver folks > deserve a lot of credit for tuning the drivers up so well! Source: https://github.com/TechEmpower/FrameworkBenchmarks/pull/2626#issuecomment-293968949 Disclaimer: the results are preliminary, but seems inline with several other frameworks that are using Java/PostgreSQL/PgJDBC. The reason is simple update of the JDBC driver from 9.4.1200 to 9.4.1208. "Gemini" is their own web framework implementation based on Java. The environment hardware is: Dell R910 (4x 10-Core E7-4850 CPUs) application server; Dell R710 (2x 4-Core E5520 CPUs) for the database server and the load-generator; switched 10-gigabit Ethernet. The delta that he mentions is: gemini-postgres db 65,971 173,689 +163.3% gemini-postgres query 2,762 7,799 +182.3% gemini-postgres update 993 1,932 +94.5% gemini-postgres fortune 76,826 179,447 +133.6% All numbers are HTTP requests per second. The "db test" is using simple "SELECT id, value FROM world WHERE id = ?" and "id" is randomly chosen. The table is 10000 rows. The "query test" is using the same setup but each HTTP request will issue 20 SQL queries as above. The "update test" is using the same setup but each HTTP request will issue 20 read SQL queries and 20 update queries. The "fortune test" is different. It reads all rows from a table with 12 rows. The columns are two: numerical id and string. The current preview data is here: https://www.techempower.com/benchmarks/previews/round14/r14p2-vs-r14p3.html#gemini-postgres.db Maybe [pgsql-advocacy] mailing list will be also interested? Once again congratulations for your great work. -- Best regards, zloster -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc