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 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0
Browser:
Firefox 145
Operating system:
Windows
Device Platform:
Desktop
Date tested:
9 months ago
array = []
143.6M/s
array length = 0
58.9M/s
View exact numbers
Test name
Executions per second
✓
array = []
143,569,824 Ops/sec
array length = 0
58,860,072 Ops/sec
Script Preparation code:
var arr = [1,2,3,4];
Tests:
array length = 0
arr.length = 0
array = []
arr = []