Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array.length = 0 vs []
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0
Browser:
Firefox 141
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
one year ago
array = []
217.7M/s
array length = 0
46.2M/s
View exact numbers
Test name
Executions per second
✓
array = []
217,727,392 Ops/sec
array length = 0
46,224,788 Ops/sec
Script Preparation code:
var arr = [1,2,3,4];
Tests:
array length = 0
arr.length = 0
array = []
arr = []