var map = new Map(new Array(4000).fill(0).map((e, idx) => [((+(idx + Math.random()).toFixed(4))) + "", (((idx - Math.random()).toFixed(4))) - 0.0]));
var sum = 0;
map.forEach((_value, key) => {
sum+=_value;
})
[...map.keys()].forEach(key => {
sum+=map.get(key);
})
for (const [key] of map) sum+=map.get(key);
for (const key of map.keys()) sum+=map.get(key);