Add a benchmark for inference.