use pthread_self() in performance test