ProducerPerformance does not seem to work with all combinations of producer config options. For example, not all config options work with sync as well as async producer. Some options work with sync, while others only with async. Apart from that, the code is very complex and bug prone. This class needs to be fixed and refactored.