[Truffle] Make the benchmark compare script more general.