Re: Script which shows performance of ByteA: ascii vs binary

2019-03-22 Thread Peter J. Holzer
On 2019-03-22 13:40:28 +0100, Francisco Olarte wrote: > On Fri, Mar 22, 2019 at 11:22 AM Thomas Güttler > 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. > >

Re: Script which shows performance of ByteA: ascii vs binary

2019-03-22 Thread Francisco Olarte
Thomas: On Fri, Mar 22, 2019 at 2:03 PM Thomas Güttler wrote: > > I'm not too sure, but I read ( in the code ) you are measuring a > > nearly not compressible urandom data againtst a highly compressible ( ... > for this case toast-tables/wal is a detail of the implementation. > This tests does no

Re: Script which shows performance of ByteA: ascii vs binary

2019-03-22 Thread Adrian Klaver
On 3/22/19 6:04 AM, Thomas Güttler wrote: Am 22.03.19 um 13:40 schrieb Francisco Olarte: Thomas: On Fri, Mar 22, 2019 at 11:22 AM Thomas Güttler 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, i

Re: Script which shows performance of ByteA: ascii vs binary

2019-03-22 Thread Thomas Güttler
Am 22.03.19 um 13:40 schrieb Francisco Olarte: Thomas: On Fri, Mar 22, 2019 at 11:22 AM Thomas Güttler 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 th

Re: Script which shows performance of ByteA: ascii vs binary

2019-03-22 Thread Kenneth Marshall
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 > 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

Re: Script which shows performance of ByteA: ascii vs binary

2019-03-22 Thread Francisco Olarte
Thomas: On Fri, Mar 22, 2019 at 11:22 AM Thomas Güttler 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

Script which shows performance of ByteA: ascii vs binary

2019-03-22 Thread Thomas Güttler
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 wh