Communication/Computation Tradeoffs in Consensus-Based Distributed Optimization