Latency is the response time between a user's action and the system’s reaction—how long it takes data to travel from…