add segment option to benchmark