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