Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 980 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 980 Bytes

CountDistinctWords

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:

  1. Shows counting on a 100MB file consisting of words randomly generated from dictionary file.
  2. Shows counting on a 100MB file consisting of words completely randomly generated.

Dictionary generated

Randomly generated