[hackers] [libgrapheme] Use proper iteration-count for benchmark-time-calculation || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Wed, 5 Jan 2022 16:40:27 +0100 (CET)

commit cecc3a40a6dbffd70d14d6a08f3bc43a17de9977
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Wed Jan 5 16:40:09 2022 +0100
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Wed Jan 5 16:40:09 2022 +0100

    Use proper iteration-count for benchmark-time-calculation
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/benchmark/utf8-decode.c b/benchmark/utf8-decode.c
index ae4d275..8056a19 100644
--- a/benchmark/utf8-decode.c
+++ b/benchmark/utf8-decode.c
_AT_@ -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);
Received on Wed Jan 05 2022 - 16:40:27 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 05 2022 - 16:48:33 CET