commit dcf877fee95f52f4d60c8b0976f9ced82c608406 Author: Laslo Hunhold <d...@frign.de> AuthorDate: Wed Jan 5 16:52:23 2022 +0100 Commit: Laslo Hunhold <d...@frign.de> CommitDate: Wed Jan 5 16:52:23 2022 +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. diff --git a/benchmark/utf8-decode.c b/benchmark/utf8-decode.c index 8056a19..ae4d275 100644 --- 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);