Benchmark of array vs hash for unique values