add latency test for barrier