Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
vs aaasassa
(version: 0)
vs
Comparing performance of:
filter vs filter boolean
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var elements = [0, 1, false, 2, '', 3];
Tests:
filter
elements.filter(x => x!==undefined);
filter boolean
elements.filter(Boolean)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
filter
filter boolean
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:
array[array.length - 1] vs array.at(-1)
array[0] vs array.at(0)
array[1] vs array.at(1)
array[1] vs array.at(1) 2
array[index] vs array.at(index)
Comments
Confirm delete:
Do you really want to delete benchmark?