Map and foreach

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Foreach
const arraycha = ['gerg', 'egeg', 'egeg'];
arraycha.forEach(tema => {
	console.log(tema')
})
ready
Map
const arraycha = ['gerg', 'egeg', 'egeg'];
arraycha.map(tema => {
	console.log(tema')
})
ready

Revisions

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