string has 1855487 characters and 253952 words Dictionaries are identical count with gsub : 100 times: 69.11 seconds count with strfind : 100 times: 61.74 seconds count with generator : 100 times: 81.04 seconds dict with gsub : 100 times: 71.07 seconds dict with strfind : 100 times: 85.41 seconds dict with generator : 100 times: 91.88 seconds tovector with gsub : 100 times: 130.95 seconds tovector with strfind : 100 times: 145.37 seconds tovector with generator: 100 times: 153.91 seconds bad count unordered : 100 times: 12.22 seconds count unordered : 100 times: 25.33 seconds count with getn : 100 times: 15.15 seconds count with generator : 100 times: 26.38 seconds count with TM : 100 times: 29.86 seconds