Re: Performance of ByteA: ascii vs binary

Поиск
Список
Период
Сортировка
Искать
От
Peter J. Holzer
Тема
Re: Performance of ByteA: ascii vs binary
Дата
Msg-id
20190319193727.34fgmdiipcxdgvn4@hjp.at
Ответ на
Список
Дерево обсуждения
Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: Performance of ByteA: ascii vs binary Олег Самойлов <splarv@ya.ru>
Re: Performance of ByteA: ascii vs binary "Peter J. Holzer" <hjp-pgsql@hjp.at>
Re: Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: Performance of ByteA: ascii vs binary "Peter J. Holzer" <hjp-pgsql@hjp.at>
Re: Performance of ByteA: ascii vs binary Tom Lane <tgl@sss.pgh.pa.us>
Re: Performance of ByteA: ascii vs binary Adrian Klaver <adrian.klaver@aklaver.com>
Re: Performance of ByteA: ascii vs binary Adrian Klaver <adrian.klaver@aklaver.com>
Re: Performance of ByteA: ascii vs binary Tom Lane <tgl@sss.pgh.pa.us>
minio server. Was: Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: minio server. Was: Performance of ByteA: ascii vs binary Adrian Klaver <adrian.klaver@aklaver.com>
Re: minio server. Was: Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Script which shows performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: Script which shows performance of ByteA: ascii vs binary Francisco Olarte <folarte@peoplecall.com>
Re: Script which shows performance of ByteA: ascii vs binary Kenneth Marshall <ktm@rice.edu>
Re: Script which shows performance of ByteA: ascii vs binary "Peter J. Holzer" <hjp-pgsql@hjp.at>
Re: Script which shows performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: Script which shows performance of ByteA: ascii vs binary Adrian Klaver <adrian.klaver@aklaver.com>
Re: Script which shows performance of ByteA: ascii vs binary Francisco Olarte <folarte@peoplecall.com>
On 2019-03-18 15:33:17 +0100, Thomas Güttler wrote:
> I did some benchmarking and in my setup there was major
> performance difference.
> 
> I tested a ByteA column.
> 
> 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.

I don't see this here (Debian 9, Python 3,5, psycopg2 2.7.6, PostgreSQL
9.5).

I modified my bench-bytea script (https://github.com/hjp/blob-bench) to
restrict the byte values to printable ASCII (32 .. 126). There was
absolutely no difference, as the attached graph shows.

        hp

-- 
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp@hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson 
В списке pgsql-general по дате отправления
От: Michel Pelletier
Дата:
От: T L
Дата:
FAQ