Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Test if array is empty
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.1.1
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
!arr.length
16.9M/s
arr.length === 0
16.7M/s
View exact numbers
Test name
Executions per second
✓
!arr.length
16,860,502 Ops/sec
arr.length === 0
16,718,280 Ops/sec
Script Preparation code:
var arr = []; var status;
Tests:
!arr.length
status = !arr;
arr.length === 0
status = arr.length === 0;