runtime: add throughput counter

throughput_avg is calculated with a wall clock timer over all items produced.