Improve the activemq and apollo benchmark scripts.