perf/aggregate: use Getopt::Long for option parsing