These tests are on FreeBSD 12 on a 2.1GHz Westmere Xeon. gwc is from GNU
coreutils 8.30 - note its performance here is rather pessimised in some areas by
FreeBSD's rather weak memchr implementation. YMMV.

For best results build with:

cargo build --release --features runtime-dispatch-simd

This enables SIMD optimizations for line and character counting. It has no
effect if you count anything else.

Future

Test suite.

Factor internals out into a library. (#1)

Improve multibyte support.

Possibly implement locale.

Replace clap/structopt with something lighter.

See Also

uwc focuses on following Unicode rules as precisely as possible, taking into
account less-common newlines, counting graphemes as well as codepoints, and
following Unicode word-boundary rules precisely.

The cost of this is currently a great deal of performance, with counts on my
benchmark file taking over a minute.