Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Set.size vs Array.length
(version: 0)
Comparing performance of:
Array.length vs Set.size
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var set = new Set() set.add('a') set.add('b') set.add('c') var array = ['a', 'b', 'c']
Tests:
Array.length
array.length
Set.size
set.size
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array.length
Set.size
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!
Comments
Confirm delete:
Do you really want to delete benchmark?