# Calculate time complexity in NODE RED

**URL:** <https://discourse.nodered.org/t/calculate-time-complexity-in-node-red/76403>\
**Category:** General\
**Tags:** function-node, uibuilder\
**Created:** [10 March 2023 19:11 UTC](https://discourse.nodered.org/t/calculate-time-complexity-in-node-red/76403 "2023-03-10T19:11:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fathi2022](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@Fathi2022](https://discourse.nodered.org/u/Fathi2022)\
**Post date:** [10 March 2023 19:11 UTC](https://discourse.nodered.org/t/calculate-time-complexity-in-node-red/76403/1 "2023-03-10T19:11:00Z")

</div>

Hi all have anyone calculate time complexity by measuring the execution time of your code using the `performance.now()` method in Node Red ?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [11 March 2023 12:28 UTC](https://discourse.nodered.org/t/calculate-time-complexity-in-node-red/76403/2 "2023-03-11T12:28:34Z")

</div>

Please don't create duplicate threads with the same topic.  
You may wish to continue your posts on the original topic.

> [@Is there a method that can be used to calculate time complexity in Node Red?](https://discourse.nodered.org/t/is-there-a-method-that-can-be-used-to-calculate-time-complexity-in-node-red/75356):
>
> Hi All I have a question there is method or property in Node Red Dashboard used to calculate time complexity? For example Visual Studio has code metrics data that calculates the complexity and maintenance.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [11 March 2023 12:29 UTC](https://discourse.nodered.org/t/calculate-time-complexity-in-node-red/76403/3 "2023-03-11T12:29:03Z")

</div>


