Initial support for benchmarking external programs

cc #2