/**
  * @iterations 1000
  * @group large
  */
 public function asyncLarge()
 {
     $asyncDoc = $this->largeDocument;
     $asyncDoc['client']['future'] = 'lazy';
     $response = $this->client->index($asyncDoc);
     $response = $response['body']['created'];
 }
 /**
  * @iterations 10
  * @group large
  */
 public function asyncLarge()
 {
     $responses = [];
     $asyncDoc = $this->largeDocument;
     $asyncDoc['client']['future'] = 'lazy';
     for ($i = 0; $i < 1000; $i++) {
         $responses[] = $this->client->index($asyncDoc);
     }
     $responses[999]->wait();
 }