In the past 6 months I've worked in a cubicle, open office space, and in an office of my own, with a proper door. I would say that productivity was lowest in the cubicle, and is highest in the office. Open office space was the most unenjoyable however.