Re: Slim down integer formatting - Mailing list pgsql-hackers

From David Rowley
Subject Re: Slim down integer formatting
Date
Msg-id CAApHDvpZ_5tMPW0nnLQ2hKvHk0o54C=9Em+1ywKV=ytrbDMUJw@mail.gmail.com
Whole thread Raw
In response to Re: Slim down integer formatting  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Slim down integer formatting
List pgsql-hackers
On Wed, 28 Jul 2021 at 01:44, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> So how much faster is it than the original?

I only did some very quick tests.  They're a bit noisey. The results
indicate an average speedup of 1.7%, but the noise level is above
that, so unsure.

create table a (a int);
insert into a select a from generate_series(1,1000000)a;
vacuum freeze a;

bench.sql: copy a to '/dev/null';

master @ 93a0bf239
drowley@amd3990x:~$ pgbench -n -f bench.sql -T 60 postgres
latency average = 153.815 ms
latency average = 152.955 ms
latency average = 147.491 ms

master + v2 patch
drowley@amd3990x:~$ pgbench -n -f bench.sql -T 60 postgres
latency average = 144.749 ms
latency average = 151.525 ms
latency average = 150.392 ms

David



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: a thinko in b676ac443b6
Next
From: Michael Paquier
Date:
Subject: Re: Replace l337sp34k in comments.