commit cecc3a40a6dbffd70d14d6a08f3bc43a17de9977
parent bdb39f49345e3b0c7f7e26c21c62d627b9de02ca
Author: Laslo Hunhold <dev@frign.de>
Date: Wed, 5 Jan 2022 16:40:09 +0100
Use proper iteration-count for benchmark-time-calculation
Signed-off-by: Laslo Hunhold <dev@frign.de>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/benchmark/utf8-decode.c b/benchmark/utf8-decode.c
@@ -108,9 +108,9 @@ main(int argc, char *argv[])
printf("%s\n", argv[0]);
run_benchmark(libgrapheme, &p, "libgrapheme ", "byte", &baseline,
- NUM_ITERATIONS, p.bufsiz);
+ NUM_ITERATIONS, cpbufsiz);
run_benchmark(libutf8proc, &p, "libutf8proc ", "byte", &baseline,
- NUM_ITERATIONS, p.bufsiz);
+ NUM_ITERATIONS, cpbufsiz);
free(cpbuf);
free(p.buf_char);