Test name | Executions per second |
---|---|
1 | 289567616.0 Ops/sec |
2 | 317021280.0 Ops/sec |
3 | 322383584.0 Ops/sec |
function t() {
const h = {
a: null,
b: null,
};
h.a = Math.random();
h.b = Math.floor(Math.random() * 1200);
return h;
}
function t() {
const a = Math.random();
const b = Math.floor(Math.random() * 1200);
return { a, b };
}
function t() {
return { a: Math.random(), b: Math.floor(Math.random() * 1200) };
}