rcx

library of miscellaneous bits of C code
git clone git://git.rr3.xyz/rcx
Log | Files | Refs | README | LICENSE

commit 855375dd9931deb337fcac9c8e60f10896fd2e15
parent 85a6abca80562cee013da614b4fc6c6ec1b67fc3
Author: Robert Russell <robertrussell.72001@gmail.com>
Date:   Sun, 28 May 2023 18:23:52 -0700

Increase bench max N

Fast operations (sub 1ns) were not being measured accurately with
previous max.

Diffstat:
Msrc/bench.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bench.c b/src/bench.c @@ -14,7 +14,7 @@ #error "Need CLOCK_PROCESS_CPUTIME_ID" #endif -#define MAXN 1000000000ULL +#define MAXN 10000000000ULL static u64 run(void (*fn)(u64 N), u64 N); static u64 requiredN(u64 prevN, u64 prevns, u64 goalns);