diff --git a/src/thread/bench.c b/src/thread/bench.c new file mode 100644 index 0000000..10937aa --- /dev/null +++ b/src/thread/bench.c @@ -0,0 +1,106 @@ +#define _XOPEN_SOURCE 700 +#include +#include +#include +#include +#include +#include "test.h" + +void *emptyfunc(void *dummy) { + return 0; +} + +void bench_pthread_createjoin_serial1(int N) { + int i; + pthread_t td; + void *dummy; + + for (i=0; i