본문 바로가기

C#

Find vs FirstOrDefault vs Where + FirstOrDefault vs for loop 속도 비교

728x90

for loop(408.2 ms) > Find(430.4 ms) > Where + FirstOrDefault(516.9 ms) > FirstOrDefault(585.6 ms)
순으로 속도가 차이난다.

관련돼서 내가 쓴 글 - https://leejooyeon.tistory.com/39

[출처]
https://yunhyeon.tistory.com/380

728x90