Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
ASKDFJLASKDFJLASKJDLASKDJFLASKD
(version: 0)
Comparing performance of:
1 vs 2 vs 3
Created:
5 years ago
by:
Guest
Jump to the latest result
Tests:
1
function t() { const h = { a: null, b: null, }; h.a = Math.random(); h.b = Math.floor(Math.random() * 1200); return h; }
2
function t() { const a = Math.random(); const b = Math.flooe(Math.random() * 1200); return { a, b }; }
3
function t() { const h = { a: null, b: null, }; a = Math.random(); b = Math.floor(Math.random() * 1200); return Object.assign(h, {a,b}); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
1
2
3
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
safdfsda
UTF-8 byte length Arabic 4-mthods
Half loop and double iteration ops
RegEx vs For Loop 1337
string with + vs template literals vs String.concat 4 input
Comments
Confirm delete:
Do you really want to delete benchmark?