1.This does not mean that the delay is caused by the performance of Deepstream/Jetson nano. You can try to remove plugins such as nvstreamux/nvinfer and only use nvarguscamerasrc/nvv4l2h264enc/rtmpsink to build a pipeline to observe the latency.
You can also use nveglglessink to observe the latency
2.This FAQ can measure the element latency of each deepstream