libgrapheme

Freestanding C library for unicode string handling
git clone https://git.sinitax.com/suckless/libgrapheme
Log | Files | Refs | README | LICENSE | sfeed.txt

commit dcf877fee95f52f4d60c8b0976f9ced82c608406
parent cecc3a40a6dbffd70d14d6a08f3bc43a17de9977
Author: Laslo Hunhold <dev@frign.de>
Date:   Wed,  5 Jan 2022 16:52:23 +0100

Revert "Use proper iteration-count for benchmark-time-calculation"

This reverts commit cecc3a40a6dbffd70d14d6a08f3bc43a17de9977, as the
previous version was already correct. Otherwise the unit would have
to be changed to "codepoint" as well.

Diffstat:
Mbenchmark/utf8-decode.c | 4++--
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, cpbufsiz); + NUM_ITERATIONS, p.bufsiz); run_benchmark(libutf8proc, &p, "libutf8proc ", "byte", &baseline, - NUM_ITERATIONS, cpbufsiz); + NUM_ITERATIONS, p.bufsiz); free(cpbuf); free(p.buf_char);