Asparagus, a vital economic contributor, is a well‐liked vegetable grown around the globe, and some secondary metabolites in its spear are beneficial to human health. Asparagus spears possess a significant quantity of nutrients and phytochemicals; however, the difference in these chemical compositions among various varieties has not been sufficiently studied. This work aimed to detect the chemical compositions of 30 varieties of asparagus and to assess them by principal component analysis (PCA). The results showed that the contents of these chemical compositions varied in varieties. Selenium (Se, 1.12–2.9 μg/100 g dry‐weight [DW]) was abundant in asparagus, with an average dry matter content of 8.25%. Free amino acids (5.60–9.98 g/100 g DW) and polyphenols (6.34–8.67 mg/g DW) were both present in high amounts, along with flavonoids (4.218–8.22 mg/g DW) and protodioscin (0.44–1.96 mg/g DW). Correlation analysis, PCA, and hierarchical cluster analysis were used to conduct a comprehensive evaluation of asparagus. Atlas, Appolo, Jinggang 111, Jingke 2, and WS‐1 were the top five varieties with comprehensive scores. This study provided valuable data for the breeding, quality improvement, processing, and utilization of asparagus varieties in the future.