Allow num_hosts = 0 for reading benchmark.