in benchmarks/Elastic.Ingest.Elasticsearch.Benchmarks/Benchmarks/BulkRequestCreationWithFixedIndexNameBenchmarks.cs [22:40]
public void Setup()
{
_transportConfiguration = new TransportConfiguration(
new SingleNodePool(new("http://localhost:9200")),
new InMemoryRequestInvoker(StockData.CreateSampleDataSuccessWithFilterPathResponseBytes(DocumentsToIndex)));
_transport = new DistributedTransport(_transportConfiguration);
_options = new IndexChannelOptions<StockData>(_transport)
{
BufferOptions = new Channels.BufferOptions
{
OutboundBufferMaxSize = DocumentsToIndex
},
IndexFormat = "stock-data-v8"
};
_data = StockData.CreateSampleData(DocumentsToIndex);
}