markTestSkipped('Skip test no company gateways installed'); } public function testRedisSpeed() { app('currencies'); $start = microtime(true); $currencies = Cache::get('currencies'); $currencies->first(function ($item) { return $item->id == 17; }); nlog(microtime(true) - $start); $this->assertTrue(true); // nlog($total_time); //0.0012960433959961 } public function testDbSpeed() { $start = microtime(true); $currency = Currency::find(17); nlog(microtime(true) - $start); $this->assertTrue(true); // nlog($total_time); // 0.006152868270874 } }