diff --git a/src/regex/bench.c b/src/regex/bench.c new file mode 100644 index 0000000..3f911ca --- /dev/null +++ b/src/regex/bench.c @@ -0,0 +1,42 @@ +#define _POSIX_C_SOURCE 200809L +#include +#include +#include +#include +#include +#include "test.h" + + +void bench_regex_compile(int N) { + regex_t re; + int i; + + setlocale(LC_CTYPE, ""); + for (i=0; i