Why my Joomla site slow?

I’m create website, optimize code than joomla, and onpage the same so why my website index is slow more code joomla ? what happen ?