Add benchmark for logging.