Add benchmarking infrastructure for performance fine-tuning purpose.

To run benchmark, do "make benchmark". or directly run "tests/ac_bench".

ac_bench goes through all the combinations of dictionary (aka pattern set)
and object files. Each combination can be run for several interations (for
better precision). For more detailed info, do "ac_bench -h".