You can enable NVDS_ENABLE_LATENCY_MEASUREMENT and NVDS_ENABLE_COMPONENT_LATENCY_MEASUREMENT to see components latency, if your rtsp camera or stream have network latency, it will impact decoder and streammux latency, and streammux property live set to 1, sink sync set to 0 before you do the test.