Test name | Executions per second |
---|---|
assasas | 242.7 Ops/sec |
dsdfsdfsd | 132457.2 Ops/sec |
const cool = {1: 1, 2: 2, 3: 3, 4: 4};
const shit = {5: 5, 6: 6, 7: 7, 8: 8};
const garbage = () => ({cool, shit});
let why;
for (var i = 0; i<10000; i++){
why = {1: cool[1], 2: cool[2], 3: cool[3], 4: cool[4], 5: shit[5], 6: shit[6], 7: shit[7], 8: shit[8]};
}
const cool = {1: 1, 2: 2, 3: 3, 4: 4};
const shit = {5: 5, 6: 6, 7: 7, 8: 8};
const garbage = () => ({cool, shit});
let why;
for (var i = 0; i<10000; i++){
why = garbage();
}