Add benchmark functionality.