In an attempt to increase profits and sustainability in the swine industry, the gut microbiome has become a focus of much research. In this study, we performed a comparative analysis of the gut microbiome in the ileum, cecum, and colon of Duroc × (Landrace × Yorkshire) (DLY) pigs showing two extreme feed conversion ratios (FCRs) using 16S rRNA gene sequencing. The results revealed that the microbial community in the cecum and colon had significantly higher alpha diversity than the ileum. We further identified 11, 55, and 55 operational taxonomic units (OTUs) with significantly different relative abundances between the high and low FCR pigs among the three gut locations, respectively. These OTUs were mainly associated with bacteria that participate in the metabolism of dietary polysaccharides and proteins. We then identified two and nine metabolic pathways that were enriched in the cecum and colon of the high FCR pigs, respectively. The results suggested that the short chain fatty acids and indolic compounds produced by microbial fermentation might influence porcine feed efficiency. These results should improve our understanding of microbiota compositions in the different gut locations of commercial pigs and provide important insights into the effect of gut microbiota on porcine FCRs.