paint-brush
Javascript performance test - for vs for each vs (map, reduce, filter, find).by@ideepak.jsd
105,107 reads
105,107 reads

Javascript performance test - for vs for each vs (map, reduce, filter, find).

by Deepak Gupta2mMay 9th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

We all know that for loop are faster than for each or <a href="https://hackernoon.com/tagged/javascript" target="_blank">javascript</a> function, since under the hood of javascript functions might be using for loops or something else which I’m not sure. I did a simple test with an array of object and doing some operation via for <a href="https://hackernoon.com/tagged/loop" target="_blank">loop</a>/ foreach / javascript functions and observing the time it take to execute.
featured image - Javascript performance test - for vs for each vs (map, reduce, filter, find).
Deepak Gupta HackerNoon profile picture
Deepak Gupta

Deepak Gupta

@ideepak.jsd

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite