Navbar positioning left vs top

I'm developing a web app and I'm wondering what is best for user experience: navbar on the left or the top of the page.

I'm looking on several CMS and generally they put the navbar on the left side, this would be the admin interface, but I'm not sure if it's the best practice, or why.

Thanks.