count(100)->create(); // 4、模拟对所有文章进行 10000 次随机访问 for ($i = 0; $i < 1000; $i++) { $postId = mt_rand(1, 100); $response = Http::get('http://localhost/posts/' . $postId); $this->info($response->body()); } } }