Esempio n. 1
0
 public void SetupMixedBenchmark()
 {
     _responseContentBytes = UpdateItemResponseFactory.CreateResponse(EntitiesFactory.CreateMixedEntity(1).ToDocument());
     _describeTableBytes   = DescribeTableResponseFactory.CreateResponse();
 }
Esempio n. 2
0
 public async Task EfficientDynamoDbBenchmark()
 {
     await _efficientDbContext.SaveAsync(EntitiesFactory.CreateMixedEntity(0)).ConfigureAwait(false);
 }
Esempio n. 3
0
 public async Task AwsSdkNetBenchmark()
 {
     await _awsDbContext.SaveAsync(EntitiesFactory.CreateMixedEntity(0)).ConfigureAwait(false);
 }
Esempio n. 4
0
 public void Setup()
 {
     _documents = Enumerable.Range(0, EntitiesCount).Select(x => EntitiesFactory.CreateMixedEntity(x).ToDocument()).ToArray();
 }
Esempio n. 5
0
 protected override Document CreateEntity(int index) => EntitiesFactory.CreateMixedEntity(index).ToDocument();
Esempio n. 6
0
 public void SetupMixedBenchmark() => SetupBenchmark <MixedEntity>(x => EntitiesFactory.CreateMixedEntity(x).ToDocument());