Javascript objects are actually Hashes, so the complexity is O(1)
for all engines.
obj.field
is an alias for obj['field']
, so they have the same performances.
You can find some JS hashes performance tests here, unfortunately only for your browser engine.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…