Perfect competition
In the short run, a perfectly competitive firm is not productively efficient as the output will not be at where the marginal cost equals to the average cost (MC = AC). However, a perfectly competitive firm will be allocatively efficient as the firm will be producing at the profit-maximising output where MC = MR, which is coincidentally the allocatively efficient point. In the long run, a perfectly competitive firm will be both allocatively and productively efficient.