I recently had an assignment which required me to explore alternative solutions to reducing an array of strings to an array of unique words using Ruby. This post shows benchmarks I used during experimentation to compare a number of approaches.
The gist below shows the approaches tested and it also includes some sample results. It was an interesting experiment and something that is worthwhile doing when you're looking to improve upon a method. You can't substitute for real data!