{"id":25880222,"url":"https://github.com/danielmackay/dotnet-ef-compiled-queries","last_synced_at":"2026-06-09T17:31:44.687Z","repository":{"id":185439782,"uuid":"624745512","full_name":"danielmackay/dotnet-ef-compiled-queries","owner":"danielmackay","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-07T11:57:11.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T13:36:34.899Z","etag":null,"topics":["dotnet","entity-framework-core"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielmackay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-07T06:48:30.000Z","updated_at":"2023-04-07T11:37:39.000Z","dependencies_parsed_at":"2023-09-09T13:47:04.744Z","dependency_job_id":null,"html_url":"https://github.com/danielmackay/dotnet-ef-compiled-queries","commit_stats":null,"previous_names":["danielmackay/dotnet-ef-compiled-queries"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielmackay/dotnet-ef-compiled-queries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-ef-compiled-queries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-ef-compiled-queries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-ef-compiled-queries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-ef-compiled-queries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielmackay","download_url":"https://codeload.github.com/danielmackay/dotnet-ef-compiled-queries/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-ef-compiled-queries/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34118751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","entity-framework-core"],"created_at":"2025-03-02T13:31:11.771Z","updated_at":"2026-06-09T17:31:44.670Z","avatar_url":"https://github.com/danielmackay.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotnet-ef-compiled-queries\n\nRuns performance tests on Entity Framework compiled queries using Benchmark.NET\n\n## Usage\n\n```bash\ndotnet run -c Release\n```\n\n## Results\n\nLocal Machine running SQL Server LocalDB:\n\n```bash\nBenchmarkDotNet=v0.13.5, OS=Windows 11 (10.0.22621.1485/22H2/2022Update/SunValley2)\n12th Gen Intel Core i9-12900HK, 1 CPU, 20 logical and 14 physical cores\n.NET SDK=7.0.202\n```\n\n|                           Method |            Mean |         Error |        StdDev |          Median |   Gen0 | Allocated |\n|--------------------------------- |----------------:|--------------:|--------------:|----------------:|-------:|----------:|\n|                 First_Or_Default |   129,028.38 ns |  2,659.869 ns |  7,545.606 ns |   126,976.73 ns | 0.4883 |    7368 B |\n|  First_Or_Default_Compiled_Query |   101,715.65 ns |  2,019.186 ns |  5,527.490 ns |   100,077.26 ns | 0.3662 |    4976 B |\n|                Single_Or_Default |   121,310.89 ns |  2,383.251 ns |  4,868.349 ns |   120,243.33 ns | 0.4883 |    7368 B |\n| Single_Or_Default_Compiled_Query |    99,554.67 ns |  1,867.989 ns |  1,747.318 ns |    99,854.26 ns | 0.3662 |    4976 B |\n|                          Get_All | 1,150,583.72 ns | 24,711.148 ns | 66,808.025 ns | 1,136,052.93 ns | 9.7656 |  137306 B |\n|           Get_All_Compiled_Query |        65.21 ns |      1.234 ns |      1.884 ns |        65.09 ns | 0.0114 |     144 B |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmackay%2Fdotnet-ef-compiled-queries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmackay%2Fdotnet-ef-compiled-queries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmackay%2Fdotnet-ef-compiled-queries/lists"}