Improve the throughput tests

Test performance with different numbers of threads producing the
data.