Fork me on GitHub

Benchmark: Wordcount

Perform a simple word count on a text file. To isolate I/O from other aspects, all solutions should implement the following stages:

Benchmark aspects: Hash maps, basic string operations, allocation

Input

Control Output

After writing the stage run times to STDOUT, the implementations should print:

Each bar corresponds to the run time of one particular stage. Use mouse-over to highlight a single stage for comparison. Only shows run times of the largest data size.

Run time: Total

All raw run times of individual runs for small (file size = ~1.0 MB), medium (file size = ~10.0 MB), and large (file size = ~100.0 MB) problem sizes. Use mouse-over to see relative performance.

Run time: IO

All raw run times of individual runs for small (file size = ~1.0 MB), medium (file size = ~10.0 MB), and large (file size = ~100.0 MB) problem sizes. Use mouse-over to see relative performance.

Run time: Split

All raw run times of individual runs for small (file size = ~1.0 MB), medium (file size = ~10.0 MB), and large (file size = ~100.0 MB) problem sizes. Use mouse-over to see relative performance.

Run time: Count

All raw run times of individual runs for small (file size = ~1.0 MB), medium (file size = ~10.0 MB), and large (file size = ~100.0 MB) problem sizes. Use mouse-over to see relative performance.