Re: Performance of ByteA: ascii vs binary

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Thomas Güttler <guettliml(at)thomas-guettler(dot)de>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Performance of ByteA: ascii vs binary
Date: 2019-03-18 14:39:17
Message-ID: 8002ab5d-64b9-46c9-c2f4-62d03dd18cf3@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/18/19 7:33 AM, Thomas Güttler wrote:
> I did some benchmarking and in my setup there was major
> performance difference.
>
> I tested a ByteA column.

What was the test?

>
> If I used ascii data the tests took 52 seconds.
> If I used random binary data the test took 250 seconds.
>
> binary data is (roughly) five times slower than ascii data?
>
> Is this a know fact, or is there something wrong with my benchmark?
>
> I used Python and psycopg2.
>
> Regards,
>   Thomas Güttler
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2019-03-18 14:45:23 Re: postgresql-11 installation errors via deb package on ubuntu 16
Previous Message Adrian Klaver 2019-03-18 14:36:46 Re: postgresql-11 installation errors via deb package on ubuntu 16