public static getThroughputRate ( ) : string | ||
return | string |
public static function getThroughputRate()
{
return number_format(1 / self::getUseTime(), 2) . 'req/s';
}
/** * @covers think\Debug::getThroughputRate * @todo Implement testGetThroughputRate(). */ public function testGetThroughputRate() { usleep(100000); $throughputRate = \think\Debug::getThroughputRate(); $this->assertLessThan(10, $throughputRate); }