I have started using @Steve-Mcl 's excellent flow-timer in my development to compare various ways of doing things and found some interesting anecdata to share.
When comparing 3 ways of connecting 2 nodes, I found the following:
- Connecting directly is consistently the fastest
- Connecting via link out and link in nodes seems to add a consistent 1ms
- Connecting via mqtt out and mqtt in nodes seems to add a fairly consistent 40-41ms.
Here is a sample of may comparison looks like (updated image):
I doubt this matters in most applications, but I am trying to speed up my flows as much as possible to increase family acceptance of smarthome automation.
Just in case anyone is wondering about the setup, Node-Red and Mosquitto (MQTT server) are running in separate containers on a Synology NAS, so the IP connection between the 2 which is traversed twice probably isn't as bad as it might be if they were physically separate.