@@ -21,12 +21,13 @@ public class BulkBenchmarkTests
21
21
. EnableHttpCompression ( false )
22
22
) ;
23
23
24
- private static readonly IElasticClient ClientNoRecyclableMemory =
25
- new ElasticClient ( new ConnectionSettings ( new InMemoryConnection ( Response , 200 , null , null ) )
26
- . DefaultIndex ( "index" )
27
- . EnableHttpCompression ( false )
28
- . MemoryStreamFactory ( MemoryStreamFactory . Default )
29
- ) ;
24
+ //TODO can uncomment when https://github.com/elastic/elasticsearch-net/pull/4202 lands
25
+ // private static readonly IElasticClient ClientNoRecyclableMemory =
26
+ // new ElasticClient(new ConnectionSettings(new InMemoryConnection(Response, 200, null, null))
27
+ // .DefaultIndex("index")
28
+ // .EnableHttpCompression(false)
29
+ // .MemoryStreamFactory(MemoryStreamFactory.Default)
30
+ // );
30
31
31
32
private static readonly Nest7 . IElasticClient ClientV7 =
32
33
new Nest7 . ElasticClient ( new Nest7 . ConnectionSettings (
@@ -41,8 +42,8 @@ public void Setup() { }
41
42
[ Benchmark ( Description = "PR" ) ]
42
43
public BulkResponse NestUpdatedBulk ( ) => Client . Bulk ( b => b . IndexMany ( Projects ) ) ;
43
44
44
- [ Benchmark ( Description = "PR no recyclable" ) ]
45
- public BulkResponse NoRecyclableMemory ( ) => ClientNoRecyclableMemory . Bulk ( b => b . IndexMany ( Projects ) ) ;
45
+ // [Benchmark(Description = "PR no recyclable")]
46
+ // public BulkResponse NoRecyclableMemory() => ClientNoRecyclableMemory.Bulk(b => b.IndexMany(Projects));
46
47
47
48
[ Benchmark ( Description = "7.x" ) ]
48
49
public Nest7 . BulkResponse NestCurrentBulk ( ) => ClientV7 . Bulk ( b => b . IndexMany ( Projects ) ) ;
0 commit comments