In reply to ashutosh1122:
Analysis port has inbuilt write() method, which doesn’t consume time, regardless number of subscriber connected to it.
That’s why Analysis port mainly used to send data from monitor to other subscriber like Scoreboard, Coverage collector.
You can check for code examples from UVM UserGuide.