pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rado@edno.moe
To: pgsql-jdbc@postgresql.org
Cc: sitnikov.vladimir@gmail.com
Subject: Re: 42.0.0.jre7, driver logging takes 30-40% of my server's time
Date: Mon, 24 Apr 2017 23:16:47 +0300
Message-ID: <d5d39fffac03727934f262c793899321@edno.moe> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Hi Vladimir,
here are the results from my test of PosgtresSQL JDBC 9.4.1212 vs 42.0.0 
(as I mentioned on github).

It is a single run in a VM but it is ease to have several runs.

IMO the results don't show performance degradation at least for the 
tested simple testcases - yes, there are some fluctuations but nothing 
significant. The computer I'm running the VM is using very modest Intel 
Celeron N3150. If someone has access to more powerful hardware it will 
be good to run the tests also - the current setup is not so good in 
detecting small changes in performance - too much time is spend in CPU 
emulation in the VM.

I'm using the code base of TFB and particularly the Java/servlet 
implementation. The code is NOT having a logging framework in the 
classpath. At least I'm not aware of it and I've checked the maven 
dependencies. The servlet container is Resin 4.0.48. If anyone wish to 
take a look don't forget to provide the correct maven profile (-P v42 or 
-P v9).

The logs of the run are here: 
https://github.com/zloster/logs/tree/master/FrameworkBenchmarks/postgreJDBC-9.4.1212-vs-42.0.0
The numbers are here: 
https://github.com/zloster/logs/blob/master/FrameworkBenchmarks/postgreJDBC-9.4.1212-vs-42.0.0/resul...
The servlet implementation is here: 
https://github.com/zloster/FrameworkBenchmarks/tree/postgrejdbc/frameworks/Java/servlet
The branch is here: 
https://github.com/zloster/FrameworkBenchmarks/tree/postgrejdbc
For other details consult the logs or ask me.

About https://github.com/pgjdbc/pgjdbc/issues/793 - it should be fairly 
easy to have a servlet with Log4j logger and some servlet with some 
other logger also. Even if the test tables are very small there are 
quite a lot of resultset processing. If there is performance degradation 
maybe it will show up as a difference.

Cheers,
zloster


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (12+ messages)

Message-ID: <d5d39fffac03727934f262c793899321@edno.moe>
Permalink:  ../d5d39fffac03727934f262c793899321@edno.moe/
Also on:    postgresql.org/message-id/d5d39fffac03727934f262c793899321@edno.moe

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: rado@edno.moe, sitnikov.vladimir@gmail.com
  Subject: Re: 42.0.0.jre7, driver logging takes 30-40% of my server's time
  In-Reply-To: <d5d39fffac03727934f262c793899321@edno.moe>
  References: <d5d39fffac03727934f262c793899321@edno.moe>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox