Skip to content

Commit b968d20

Browse files
committed
Allow simple benchamrk debugging.
1 parent a22146e commit b968d20

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/EFCore.Cassandra.Benchmarks/Program.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,18 @@ internal class Program
99
{
1010
private static async Task Main(string[] args)
1111
{
12+
#if DEBUG
13+
var insertData = new InsertData();
14+
insertData.AddApplicants();
15+
insertData.BulkInsertApplicants();
16+
insertData.AddRangeApplicants();
17+
18+
var batchedInsertData = new BatchedInsertData();
19+
await batchedInsertData.BatchedInsertApplicantsAsync();
20+
#else
1221
BenchmarkRunner.Run<InsertData>();
1322
BenchmarkRunner.Run<BatchedInsertData>();
23+
#endif
1424
}
1525
}
1626
}

0 commit comments

Comments
 (0)