The computational expense of each similarity measure was detailed for both ESI and EI-based compound identification, as shown in Supplementary Table . To this end, we randomly selected 1,000 query mass spectra with replacement. We then recorded the computation time to calculate the similarity scores between each query spectrum and all reference spectra.