Benchmarking node-red execution

Is there any way to benchmark node-red execution to try to find out functions where the main thread spends most of the time?

As a single-threaded application dealing with I/O - I'd like to find out potential bottlenecks...

Thanks

Yes, Bart gave an example of this the other day I seem to remember. He has a contributed node.

Can you please provide any references?