From 4d35231bc4c3819ae96669970761492084246750 Mon Sep 17 00:00:00 2001 From: nsz Date: Aug 04 2011 23:55:17 +0000 Subject: pthread bench from libc-bench --- 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