Re: CPU costs of random_zipfian in pgbench - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CPU costs of random_zipfian in pgbench
Date
Msg-id 19055.1554154745@sss.pgh.pa.us
Whole thread Raw
In response to Re: CPU costs of random_zipfian in pgbench  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: CPU costs of random_zipfian in pgbench
List pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> I was wondering about that too.  It seems like it'd be a wise idea to
>> further constrain s and/or n to ensure that the s > 1 code path doesn't do
>> anything too awful ...

> Yep. The attached version enforces s >= 1.001, which avoids the worse cost
> of iterating, according to my small tests.

Seems reasonable.  Pushed with minor documentation editing.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Fix XML handling with DOCTYPE
Next
From: Alvaro Herrera
Date:
Subject: Re: CPU costs of random_zipfian in pgbench