X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fbench.c;h=0e87845234d68274c5eed8cdc94bed1f899ffd87;hb=086c6aa74d2a792cead9b7245239a82459ed909c;hp=625a21729478f7ee6d7b3e0f80ecb37e6890d7c0;hpb=dc655a9a438369fea59f6ee49bee874f71f82391;p=libc-test diff --git a/src/stdio/bench.c b/src/stdio/bench.c index 625a217..0e87845 100644 --- a/src/stdio/bench.c +++ b/src/stdio/bench.c @@ -1,10 +1,25 @@ -#define _POSIX_C_SOURCE 200809L #include #include #include #include "test.h" -void bench_stdio_putcgetc() { +void bench_stdio_getc_unlocked(int N) { + FILE *f = tmpfile(); + size_t i; + size_t cs = 0; + + for (i=0; i