# I/O switching performance on a Raspberry Pi 4

**URL:** <https://discourse.nodered.org/t/i-o-switching-performance-on-a-raspberry-pi-4/25486>\
**Category:** General\
**Created:** [25 April 2020 12:45 UTC](https://discourse.nodered.org/t/i-o-switching-performance-on-a-raspberry-pi-4/25486 "2020-04-25T12:45:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [25 April 2020 12:58 UTC](https://discourse.nodered.org/t/i-o-switching-performance-on-a-raspberry-pi-4/25486/3 "2020-04-25T12:58:24Z")

</div>

> [@dpnsw](#):
>
> JSON for my flow is:  
> **[{"id":"1ae67599.25720a","type":"function","z":"82f1d13f.bdbbc","name":"Measure Test","func":"var MTEndTime = new Date().getTime();\nflow.set("EndTime",MTEndTime)\nvar Duration = MTEndTime - flow.get("StartTime");\nmsg.payload = Duration;\nmsg.speed = 5000 / Duration \* 1000;\nflow.set("Duration",Duration);\nreturn msg;","outputs":1,"noerr":0,"x":560,"y":340,"wires":[["7542c685.c89c28","d06d23bb.e2c868"]]}]**

Please read [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) first, then select all nodes on your flow that you would like to share, and export it. The code you've here is only the function node named 'Measure Test'.

---

_[View the full topic](https://discourse.nodered.org/t/i-o-switching-performance-on-a-raspberry-pi-4/25486)._
