What size of posts do I need for an 8' by 10' woodshed?
Either will work. They'll both hold up a conventional roof of that size without issue. Your concern is more a matter of diagonal bracing, especially if the posts won't be in the ground.