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