Add benchmark  code for producer