Added eg/test-bayes.pl

A tool for performance/precision benchmarking.
Also serves as an all-in-one usage example.