Does sitespeed affect SEO or ranking

I am not convinced it will impact SEO directly. However, it will affect bounce-rate, pogo-sticking, UX and conversion. Crawlability will improve as well when improving speed and thus. SEO or UX alone should not be the reason to address sitespeed, addressing sitespeed will impact both as you'll extend inclusivity.