support threads in benchmark