Re: [PATCH] tests/qht-bench: Adjust rate computation and comparisons

2020-06-23 Thread Richard Henderson
On 6/21/20 2:28 PM, Emilio G. Cota wrote: >> -if (info->r < resize_threshold) { >> +if (info->r <= resize_threshold) { >> size_t size = info->resize_down ? resize_min : resize_max; >> bool resized; > > This works, but only because info->r cannot be 0 since xorshift never

Re: [PATCH] tests/qht-bench: Adjust rate computation and comparisons

2020-06-22 Thread Emilio G. Cota
Cc'ing Philippe, who authored the fix for this in May as I mention below. Emilio On Sun, Jun 21, 2020 at 17:28:25 -0400, Emilio G. Cota wrote: > On Sat, Jun 20, 2020 at 14:45:51 -0700, Richard Henderson wrote: > > Use <= comparisons vs the threshold, so that threshold UINT64_MAX >

Re: [PATCH] tests/qht-bench: Adjust rate computation and comparisons

2020-06-21 Thread Emilio G. Cota
On Sat, Jun 20, 2020 at 14:45:51 -0700, Richard Henderson wrote: > Use <= comparisons vs the threshold, so that threshold UINT64_MAX > is always true, corresponding to rate 1.0 being unity. Simplify > do_threshold scaling to 2**64, with a special case for 1.0. > > Cc: Emilio G. Cota > Signed-off

[PATCH] tests/qht-bench: Adjust rate computation and comparisons

2020-06-20 Thread Richard Henderson
Use <= comparisons vs the threshold, so that threshold UINT64_MAX is always true, corresponding to rate 1.0 being unity. Simplify do_threshold scaling to 2**64, with a special case for 1.0. Cc: Emilio G. Cota Signed-off-by: Richard Henderson --- tests/qht-bench.c | 15 +++ 1 file c