Reverse forEach

Benchmark created on


Setup

const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

Test runner

Ready to run.

Testing in
TestOps/sec
Direct forEach
array.reverse().forEach(() => {
	
});
ready
Indirect foreach
const reversedArray = array.reverse();
reversedArray .forEach(() => {
	
});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.