JavaScript Iterator Benchmarks

added by JavaScript Kicks
1/9/2020 8:48:52 AM

412 Views

Below are benchmarks and the accompanying function for the various ways to iterate in JavaScript. Each was tested by iterating 10 million times. TLDR; Regular "For Loop" is most performant and the "For Of loop" is least performant . For Loop - 8 ms While Loop - 8 ms


0 comments