TL;DR Sets are 2x faster in this benchmark. Please be cautious and don't generalize this statement to all Set operations. Counting unique elements is a common task in many programs. Until recently the ...