Comparing performance of different programming languages by generating all permutations of a string.