const len = 2_000_000
const arrs=[]
for(let i = 0; i < len;i++) {
arrs.push([Math.random(),Math.random()])
}
const objs=[]
for(let i = 0; i < len;i++) {
objs.push({a:Math.random(),b:Math.random()})
}
const res = []
for(let i = 0; i < arrs.length;i++) {
const [a,b] = arrs[i]
res.push(a+b)
}const res = []
for(let i = 0; i < objs.length;i++) {
const {a,b} = objs[i]
res.push(a+b)
}const res = []
for(let i = 0; i < objs.length;i++) {
res.push(objs[i].a+objs[i].b)
}
const res = []
for(let i = 0; i < arrs.length;i++) {
res.push(arrs[i][0]+arrs[i][1])
}