docs: public BulkActionResponse bulk(Resource resource, TrackingBytesArray data) {
          // NB: dynamically get the stats since the transport can change
          long start = network.transportStats().netTotalTime;
          Response response = execute(PUT, resource.bulk(), data);
          long spent = network.transportStats().netTotalTime - start;
  
          stats.bulkTotal++;
          stats.docsSent += data.entries();
          stats.bulkTotalTime += spent;
          // bytes will be counted by the transport layer
  
          return new BulkActionResponse(parseBulkActionResponse(response), response.status(), spent);
      }