{"id":22958090,"url":"https://github.com/sqlrepo/benchmarks","last_synced_at":"2025-07-31T00:41:06.101Z","repository":{"id":93868931,"uuid":"123809238","full_name":"SqlRepo/Benchmarks","owner":"SqlRepo","description":"Benchmark results for SqlRepo vs other ORMs","archived":false,"fork":false,"pushed_at":"2018-03-04T18:49:38.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T01:52:16.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SqlRepo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-04T16:56:10.000Z","updated_at":"2018-09-30T01:31:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"d859a001-fcde-4035-8117-c33c9c87762d","html_url":"https://github.com/SqlRepo/Benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SqlRepo/Benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FBenchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FBenchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FBenchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FBenchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SqlRepo","download_url":"https://codeload.github.com/SqlRepo/Benchmarks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FBenchmarks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267967720,"owners_count":24173566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2024-12-14T17:35:47.649Z","updated_at":"2025-07-31T00:41:06.073Z","avatar_url":"https://github.com/SqlRepo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Benchmarks\nThis repository contains the .NET application for running the [SqlRepo](https://github.com/SqlRepo/sqlrepo) performance benchmarks. The aim is to use realistic scenarios to compare performance.\n\n## What is SqlRepo?\nFind more information about SqlRepo here: [SqlRepo](https://github.com/SqlRepo/sqlrepo)\n\n## Compared Libraries\n* [SqlRepo](https://github.com/SqlRepo/sqlrepo)\n* Dapper\n* EF Core 2.0\n\n*Please note*\nAll benchmark results should be taken with a pinch of salt as there are many ways to write queries, and many ways to use each ORM. There are many factors to consider when choosing which library to use, such as timing, memory allocation and strong typing.\n\nWe welcome any feedback to the benchmarks, and any contributions to add other libraries to compare through a pull request.\n\n## Results\n\nEach test is run against a SQL database containing 50,000 records. The tests are run 105 times, with the first 5 tests being ignored to allow for JIT and any dynamic IL.\n\nTest Machine is a VM with 4 cores running on an i7 7700k. Last run on [4th March 2018](https://github.com/SqlRepo/Benchmarks/blob/master/RawResults/2018-04-03_18-44.txt).\n\n\n| Test        | Library           | Best Recorded Test (ms)  | Total Time Taken (ms)  |\n| ------------- |:-------------:| -----:| -----:|\nSelect All Records | Dapper | 51.03ms | 6250.34ms\nSelect All Records | EF Core | 163.11ms | 19874.59ms\nSelect All Records | SqlRepo | 50.34ms | 6260.17ms\n\n| Test        | Library           | Best Recorded Test (ms)  | Total Time Taken (ms)  |\n| ------------- |:-------------:| -----:| -----:|\nSelect TOP 1 | Dapper | 0.3ms | 40.43ms\nSelect TOP 1 | EF Core | 0.66ms | 73.73ms\nSelect TOP 1 | SqlRepo | 0.35ms | 42.85ms\nSelect TOP 1 | SqlRepo (Raw SQL) | 0.32ms | 40.16ms\n\n| Test        | Library           | Best Recorded Test (ms)  | Total Time Taken (ms)  |\n| ------------- |:-------------:| -----:| -----:|\nSelect TOP 5000 | Dapper | 3.91ms | 533ms\nSelect TOP 5000 | EF Core | 9.81ms | 2082.93ms\nSelect TOP 5000 | SqlRepo | 4ms | 526.43ms\n\n| Test        | Library           | Best Recorded Test (ms)  | Total Time Taken (ms)  |\n| ------------- |:-------------:| -----:| -----:|\nSelect DecimalValue From All Records | Dapper | 13.16ms | 2382.85ms\nSelect DecimalValue From All Records  | EF Core | 39.93ms | 5106.13ms\nSelect DecimalValue From All Records  | SqlRepo | 12.74ms | 2284.85ms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlrepo%2Fbenchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqlrepo%2Fbenchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlrepo%2Fbenchmarks/lists"}