measuring the throghput