Hi guys,

I'm trying to improve my JavaScript application performance. The for loop is the most critical part of the app. It has been constantly filled with Float32Array and Unit8Array streamed data. I'm considering this two tests. Their results are different. The guy at Oracle says the while loop in reverse is fastest:

Here his test results: https://blogs.oracle.com/greimer/ent..._way_to_code_a

But the test on this page shows that the for loop with caching length wins:


So which one you decide is the best?

Thank you,