Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
for vs filter vs find
(version: 0)
Comparing performance of:
for vs filter
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
const
Script Preparation code:
const links = [ { Rel: "modelSelectionSetup", Href: "http://localhost:8081/Embed/8184/4870/Setup/ComparisonSelection" }, { Rel: "comparisonSetup", Method: "GET", Href: "http://localhost:8081/Embed/8184/4870/45/Setup/RangeComparison" } ]
Tests:
for
for(let i=0; i<links.length; i++) { const link = links[i]; if (link.Rel == 'comparisonSetup') return link; }
filter
return links.filter(x => x.Rel == 'comparisonSetup')[0];
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
for
filter
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!
Comments
Confirm delete:
Do you really want to delete benchmark?