A simple set of projects to run performance testing, especially with EF Core and SQL.
- Install with the following command:
dotnet tool install -g efbench
- Run against
localdb(Windows only)efbench primary-keys --db localdb - Run against
Sqlite in-memoryefbench primary-keys --db sqliteinmemory - Run against
SQL Server in a container- Ensure Rancher Desktop / Docker Desktop is installed along with docker engine.
- Copy the contents of the docker-compose.yml to a directory
- Run
docker compose up -dfrom this directory to get container running
- Run
efbench primary-keys --db sqlservercontainer - Run against any SQL server (optimized for AzureSql, but other SQL Servers will work also):
efbench primary-keys --connection-string <your-connectionstring>