Added benchmarking test for codec.  Modified some self-test routines for benchmarking.