---
title: "Discussion on \"Node.js Performance  #1: \"for...of\" vs forEach()\" | Hashnode"
description: "Discussion on \"Node.js Performance  #1: \"for...of\" vs forEach()\". Understanding the Performance Differences Between 'for...of' and 'forEach' in Node.js"
url: "https://hashnode.com/posts/nodejs-performance-1-forof-vs-foreach/65f4450f115ae884e2244797"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Node.js Performance #1: "for...of" vs forEach()](https://dsvynarenko.hashnode.dev/nodejs-performance-1-forof-vs-foreach?utm_source=hashnode&utm_medium=feed)

Understanding the Performance Differences Between 'for...of' and 'forEach' in Node.js

Mar 15, 2024 · 19 min read · dsvynarenko.hashnode.dev  
Updated Apr 11, 2024  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#v8](https://hashnode.com/tag/v8)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#performance](https://hashnode.com/tag/performance)
-   [#optimization](https://hashnode.com/tag/optimization)
-   [#foreach-vs-forof](https://hashnode.com/tag/foreach-vs-forof)
-   [#bytecode](https://hashnode.com/tag/bytecode)
-   [#forof](https://hashnode.com/tag/forof)

## Written by

[Dmytro Svynarenko](https://hashnode.com/@dsvynarenko)

@dsvynarenko

  
[View profile](https://hashnode.com/@dsvynarenko)

Senior Software Engineer @ CEX.IO

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
