This project uses BenchmarkDotNet to measure the performance of high-throughput data ingestion. The following steps will guide you through setting up the environment and running the benchmarks.
- .NET 10 SDK or later
- Docker
Once the database is set up, you can run the performance tests.
Change your solution's build configuration to Release in order to run the tests.
You can run the benchmark project in one of two ways:
Right-click on the CmdScale.EntityFrameworkCore.TimescaleDB.Benchmarks project and select:
Debug > Start Without Debugging
Or press Ctrl + F5.
dotnet run --project CmdScale.EntityFrameworkCore.TimescaleDB.Benchmarks -c ReleaseThe benchmark will run through various combinations of worker counts and batch sizes, and the results will be saved in the BenchmarkDotNet.Artifacts folder.