Counts distinct words in a text file using different functions for counting (including parallel) and different split methods.
Here is the output from all the included count and split functions. The best and worst times for each split function are highlighted. The results are grouped by split functions and are executed in this order:
- SplitFunctions.SplitToWordsReplace
- SplitFunctions.SplitWithLinq
- SplitFunctions.SplitToWordsNormal
- SplitFunctions.SplitToWordsNormalDistinct
- SplitToWordsRegex
There are 2 examples:
- Shows counting on a 100MB file consisting of words randomly generated from dictionary file.
- Shows counting on a 100MB file consisting of words completely randomly generated.