# How fast is Node-Red?

**URL:** <https://discourse.nodered.org/t/how-fast-is-node-red/19014>\
**Category:** General\
**Created:** [11 December 2019 11:54 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014 "2019-12-11T11:54:02Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![realsquash](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@realsquash](https://discourse.nodered.org/u/realsquash)\
**Post date:** [15 December 2019 15:07 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/21 "2019-12-15T15:07:50Z")

</div>

Node-red is just fine at that level. I've done a few stress tests on my setup with a few hundred messages coming in from a 500k CAN bus, doing a few simple floating point math ops on them, and then sending an MQTT message. A Pi 3 was fine with this and a Pi4 doesn't breath hard, either.

When I introduced InfluxDB I did a few tests and it just can't handle it. CPU pegs, everything grinds to a halt. It's not the right DB, IMHO. I found it would handle about 50 writes per second without going nuts. I've pared it down to about 5/second now, sanity returned. I don't think there's a great way to store such high resolution data on something like a Pi unless you right it up with an SSD and a real database.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 December 2019 00:11 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/22 "2019-12-16T00:11:40Z")

</div>

> [@realsquash](#):
>
> I don't think there's a great way to store such high resolution data on something like a Pi unless you right it up with an SSD and a real database

I suspect that it would be a lot better with just a decent SSD. The problem with the Pi is that, until you move to a Pi4, the I/O speed is really quite limited. In addition, limited memory really kills off performance for high-speed writes.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [16 December 2019 00:21 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/23 "2019-12-16T00:21:40Z")

</div>

I've recently connected an SSD (6Gbps) to a RPi-4B via one of its USB 3.0 ports.  
I used a powered enclosure for the SSD so it all looks neat and tidy and doesn't put a strain on the Pi's PSU.  
Also used the following suggestion so once the Pi has booted (off of the SD card) it uses the SSD.

[SD to SSD](https://www.element14.com/community/community/raspberry-pi/blog/2019/08/30/quick-sd-to-ssd-on-the-pi-4)

Although I've not done any speed tests yet the Pi seems very responsive.

---

<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:** [16 December 2019 02:01 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/24 "2019-12-16T02:01:07Z")

</div>

> [@dynamicdave](#):
>
> Although I've not done any speed tests yet

When can we expect some? 😉

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [16 December 2019 07:59 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/25 "2019-12-16T07:59:23Z")

</div>

Is there a set of (standard) tests that you or others use?  
If so, have you a link or details?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 December 2019 16:07 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/26 "2019-12-16T16:07:18Z")

</div>

> [@dynamicdave](#):
>
> RPi-4B

Yes, the Pi4 has an updated controlled which gives much higher throughput.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [16 December 2019 16:56 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/27 "2019-12-16T16:56:58Z")

</div>

I've ordered another RPi-4B today, so I can do some 'before' and 'after' speed tests.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [17 December 2019 12:13 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/28 "2019-12-17T12:13:16Z")

</div>

> [@dynamicdave](#):
>
> Although I've not done any speed tests yet the Pi seems very responsive.

That's called the "I've spent the money - it must be going faster " effect 🙂

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [21 December 2019 11:30 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/29 "2019-12-21T11:30:35Z")

</div>

@dceejay Dave, would disabling a `debug` node be as effective as removing it?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 December 2019 11:51 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/30 "2019-12-21T11:51:49Z")

</div>

not quite - as the message still gets cloned by the sending node, before then being discarded (before being sent to the websocket). This assumes by disable you mean the button to the right of the node...  
Or did you mean disable by the button at the bottom ? (Though I think the same is true - it is still "wired in" - so the clone happens even if the subsequent disabled node then drops it... - but I'd need to dig into the code to check)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [21 December 2019 12:22 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/31 "2019-12-21T12:22:06Z")

</div>

I was wondering about the button at the bottom. Just a curiosity question in case you knew off hand,

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 December 2019 12:26 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/32 "2019-12-21T12:26:10Z")

</div>

The answer will be in the source... the Node.js file probably... but about to engage with real world so will leave it to you

---

<div class="post-metadata">

**Author:** ![insanoff](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/insanoff/32/14291_2.png) [@insanoff](https://discourse.nodered.org/u/insanoff)\
**Post date:** [16 January 2020 08:26 UTC](https://discourse.nodered.org/t/how-fast-is-node-red/19014/33 "2020-01-16T08:26:32Z")

</div>

Hi Folks. I have been away on vacation.

> [@hotNipi](#):
>
> Is there some know rules about incoming data? Is it guaranteed that you always have comma separated string with 5 elements? Can the data be still considered valid, if some value missing?

Yes, it is guaranteed.

> [@bakman2](#):
>
> If you disconnect the influx node, is the cpu utilisation the same ?

No, it settles back to "normal".

> [@TotallyInformation](#):
>
> As Dave says, turning it off will stop the debug msg being sent which helps but I think that there will still be a msg clone operation. Not 100% sure though.

Hrmm. Interesting. I would also know about disabling with button at the bottom.

[Previous page](https://discourse.nodered.org/t/how-fast-is-node-red/19014.md?page=1)
