pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kenneth Marshall <ktm@rice.edu>
To: Francisco Olarte <folarte@peoplecall.com>
Cc: Thomas Güttler <guettliml@thomas-guettler.de>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: Script which shows performance of ByteA: ascii vs binary
Date: Fri, 22 Mar 2019 07:48:32 -0500
Message-ID: <20190322124832.GA5616@aart.rice.edu> (raw)
In-Reply-To: <CA+bJJbwSHN=ryg9tAuQM8esEJ-OOfO9+ocA4ZL1fvRNv-kiOEA@mail.gmail.com>
References: <c861b16d-29cb-47ee-6c22-e15f608928b6@thomas-guettler.de>
	<d6a0a060-f61c-7f5d-b109-dfa94eb378b2@thomas-guettler.de>
	<CA+bJJbwSHN=ryg9tAuQM8esEJ-OOfO9+ocA4ZL1fvRNv-kiOEA@mail.gmail.com>

On Fri, Mar 22, 2019 at 01:40:28PM +0100, Francisco Olarte wrote:
> Thomas:
> 
> On Fri, Mar 22, 2019 at 11:22 AM Thomas Güttler
> <guettliml@thomas-guettler.de> wrote:
> > Thank you for asking several times for a benchmark.
> > I wrote it now and it is visible: inserting random bytes into bytea is much slower,
> > if you use the psycopg2 defaults.
> > Here is the chart:
> >    https://github.com/guettli/misc/blob/master/bench-bytea-inserts-postrgres.png
> > And here is the script which creates the chart:
> >    https://github.com/guettli/misc/blob/master/bench-bytea-inserts-postrgres.py
> 
> I'm not too sure, but I read ( in the code ) you are measuring a
> nearly not compressible urandom data againtst a highly compressible (
> 'x'*i ) data,
> are you sure the difference is not due to data being compressed and
> generating much less disk usage in toast-tables/wal?
> 
> Francisco Olarte.
> 
+1

Regards,
Ken




view thread (7+ messages)  latest in thread

Message-ID: <20190322124832.GA5616@aart.rice.edu>
Permalink:  ../20190322124832.GA5616@aart.rice.edu/
Also on:    postgresql.org/message-id/20190322124832.GA5616@aart.rice.edu

 · 

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-general@postgresql.org
  Cc: ktm@rice.edu, folarte@peoplecall.com, guettliml@thomas-guettler.de, adrian.klaver@aklaver.com, hjp-pgsql@hjp.at, tgl@sss.pgh.pa.us
  Subject: Re: Script which shows performance of ByteA: ascii vs binary
  In-Reply-To: <20190322124832.GA5616@aart.rice.edu>
  References: <c861b16d-29cb-47ee-6c22-e15f608928b6@thomas-guettler.de> <d6a0a060-f61c-7f5d-b109-dfa94eb378b2@thomas-guettler.de> <CA+bJJbwSHN=ryg9tAuQM8esEJ-OOfO9+ocA4ZL1fvRNv-kiOEA@mail.gmail.com> <20190322124832.GA5616@aart.rice.edu>

* 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