latency test of different synchronization mechanisms