The code snippet for the Onsite Optimizer will vary depending on your website.
On average, the snippet is less than 50 kilobytes.
As for how this affects page speed, the load time average is less than 30ms on average, so this won’t impact your SEO performance, or user experience, in meaningful way.