add latency test
lint code