For our ecommerce, we could also choose to have a specific template developed from scratch, all our own. Like a tailored suit, it would have many advantages, including high performance. However, this is only if the "tailor" does a professional job; otherwise, like the wool sweaters from grandma, we would end up with just an uncomfortable and ugly piece of clothing.
A Custom Template, in addition to a high cost, would present poor scalability; we would have to rely on the developer every time our business grows and new features are needed, and every time we need to update the CMS. With the speed of change in the modern market, such a solution is unfeasible unless for ecommerce that generate hundreds of millions of euros, and especially must handle a huge traffic of users and have the necessary professional figures in their staff. In this case, the choice is dictated by technical needs, and CMS are not used, or if they are used, they are completely rewritten. Therefore, in the realm of CMS like Wordpress, PrestaShop, Magento, etc., the best solution is a professional template, with the development of a Child theme that provides a level of customization that makes it unique and performance-wise very similar to a Custom solution.