Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Test-aassdd
(version: 0)
Comparing performance of:
checks vs includes
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arr = ["id", "name"]; var field = "id"
Tests:
checks
if (field === 'id' || field === 'name') { let a = 1; }
includes
if (arr.includes(field)) { let a = 1; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
checks
includes
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!
Related benchmarks:
test array / attributes 2
Get by index
Compare IDs string vs number
Test-avi
Comments
Confirm delete:
Do you really want to delete benchmark?