Comparing histories on the same branch is very confusing for me on GitHub. I struggle with this regularly:
If I use compare/master in the URL after the
compare/master
The article you linked has instructions for comparing commits.
The GitHub comparison tool will accept any revision. Branches, tags, commit IDs, even dates. If you want to compare between two commits, give it the commit IDs. Here's their example.