# Recommended way for measuring timings in a chain of nodes

**URL:** <https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258>\
**Category:** General\
**Created:** [25 November 2021 09:49 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258 "2021-11-25T09:49:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [25 November 2021 09:49 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258/1 "2021-11-25T09:49:21Z")

</div>

Hi folks,

I have somewhere a bottleneck in a chain of nodes. So I would like to inject a message in that chain of nodes, and measure the _ **process timing** _ of that message in each node of that chain. I.e. how long it takes for every node to process that message. I don't want to get overwhelmed by other timing information from other nodes in my flow:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/a/6a15d75dc539bd2cf774a7f927f88ab53d514f2a.png)

Was wondering what is the best way to do that: via metrics, via the flow debugger perhaps, ...

Thanks !!  
Bart

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 November 2021 09:57 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258/2 "2021-11-25T09:57:12Z")

</div>

Perhaps not the best way, but a reasonable (and simple) way is to use this...

[https://flows.nodered.org/flow/63f29373e826a9fd4943d679d43e725f](https://flows.nodered.org/flow/63f29373e826a9fd4943d679d43e725f)

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [25 November 2021 11:17 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258/3 "2021-11-25T11:17:19Z")

</div>

Thanks for the pointer!  
I had hoped that perhaps someone meanwhile had build some kind of time profiler based on the message hooks 😉

---

<div class="post-metadata">

**Author:** ![LosinIt](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@LosinIt](https://discourse.nodered.org/u/LosinIt)\
**Post date:** [25 November 2021 15:04 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258/4 "2021-11-25T15:04:21Z")

</div>

Thanks for providing this, @Steve-Mcl ! I've been curious about processing time in a couple of my flows but hadn't gotten around to finding a way to show it.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [26 November 2021 03:54 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258/5 "2021-11-26T03:54:41Z")

</div>

Would something like [node-red-contrib-msg-speed (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-msg-speed) help you?

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [26 November 2021 06:38 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258/6 "2021-11-26T06:38:00Z")

</div>

Hey @Bobo,  
Not exactly, since I developed that node to measure the speed of messages. I.e. how many messages pass per time unit. But now I want to determine which node in a chain of nodes is the bottleneck.  
The subflow from @Steve-Mcl will do the job.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [26 November 2021 10:54 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258/7 "2021-11-26T10:54:17Z")

</div>

LOL thats hilarious. I didn't even look to see who wrote it.

Ooops 😳 Too many xmas drinks already.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 December 2021 10:55 UTC](https://discourse.nodered.org/t/recommended-way-for-measuring-timings-in-a-chain-of-nodes/54258/8 "2021-12-10T10:55:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
