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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Android
Device Platform:
Desktop
Date tested:
one year ago
array = []
11.4M/s
array length = 0
10.3M/s
View exact numbers
Test name
Executions per second
✓
array = []
11,417,660 Ops/sec
array length = 0
10,338,182 Ops/sec
Script Preparation code:
var arr = [1,2,3,4];
Tests:
array length = 0
arr.length = 0
array = []
arr = []