modified calc-throughput.py