asda

Benchmark created on


Description

asdasd

Test runner

Ready to run.

Testing in
TestOps/sec
aaa
const array1 = [1,2,3,4,5,6,7,8,9];
let result = array1.map(el => el*2)
ready
bbb
const array1 = [1,2,3,4,5,6,7,8,9];
let result = array1.reduce((accumulator, currentValue) => {
	 accumulator.push(currentValue*2);
	 return accumulator
	}, [])
ready
hhh
const array1 = [1,2,3,4,5,6,7,8,9];
let result = [];
for (i=0; i<array1.length; i++) {
	result.push(array1[i]*2);
}
ready
ooo
let result = [1,2,3,4,5,6,7,8,9];
for (i=0; i<result.length; i++) {
	result[i] = result[i]*2;
}
ready

Revisions

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