How does the Nexus 5 compare to the other high-end phones?

I am getting a Nexus 5 soon and I wanted to ask how it compares with the other flagship Androids like Samsung GALAXY S4 and HTC One (both the normal ones and the Google Play editions)?