# Benchmark just to see how long it takes to build the collection up front # # $ time ruby c.rb # real 1m26.778s # user 1m23.649s # sys 0m2.611s alphabet = %w(a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9) alphabet.product(alphabet, alphabet, alphabet, alphabet)