Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
PwD84cTUCbiv4QqfvngndfD7u8sXdFuW
(version: 3)
Comparing performance of:
A vs B
Created:
9 years ago
by:
Registered User
Jump to the latest result
Script Preparation code:
var self = {a:1,b:2,c:3,d:4}
Tests:
A
let x = 0; for (let i = 0; i < 10000; i++) { x += self.c; }
B
let x = 0; const y = self.c; for (let i = 0; i < 10000; i++) { x += y; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
A
B
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:
object.create vs _.clone
Keys.length vs Values.length
forin vs obj.values().map
for-in vs object.keys vs object.values for objects v3
Deep merge lodash vs ramda vs deepmerge vs Immutable
Comments
Confirm delete:
Do you really want to delete benchmark?