{"id":21095121,"url":"https://github.com/dan-and-dna/yoursql","last_synced_at":"2026-04-12T17:48:51.914Z","repository":{"id":109621209,"uuid":"525455434","full_name":"DAN-AND-DNA/yoursql","owner":"DAN-AND-DNA","description":"mock db for benchmark","archived":false,"fork":false,"pushed_at":"2022-08-16T16:18:17.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T02:04:33.897Z","etag":null,"topics":["benchmark","database","gorm","mock","mysql","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DAN-AND-DNA.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-16T16:15:59.000Z","updated_at":"2022-08-16T16:19:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee887053-e3e1-4df6-8fe8-fd6921bdc4df","html_url":"https://github.com/DAN-AND-DNA/yoursql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DAN-AND-DNA/yoursql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fyoursql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fyoursql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fyoursql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fyoursql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DAN-AND-DNA","download_url":"https://codeload.github.com/DAN-AND-DNA/yoursql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fyoursql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267442458,"owners_count":24087803,"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-27T02:00:11.917Z","response_time":82,"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":["benchmark","database","gorm","mock","mysql","postgresql"],"created_at":"2024-11-19T22:23:06.757Z","updated_at":"2026-04-12T17:48:51.871Z","avatar_url":"https://github.com/DAN-AND-DNA.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yoursql\nmock db for benchmark\n主要为了压力测试使用，避免网络的影响\n\n## example\nfaker_db_test.go\n\n## 基准\nraw query and grom query\n前者为原始数据库查询的性能，后者为gorm查询性能\n\n```\n=== RUN   Test_Query\n--- PASS: Test_Query (0.00s)\n=== RUN   Test_GORM_find\n--- PASS: Test_GORM_find (0.00s)\n=== RUN   Test_GORM_first\n--- PASS: Test_GORM_first (0.00s)\n=== RUN   Test_GORM_first_where\n--- PASS: Test_GORM_first_where (0.00s)\ngoos: linux\ngoarch: amd64\npkg: snk.git.node1/dan/yoursql\ncpu: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz\nBenchmark_Query\nBenchmark_Query-6        \t 1877784\t       617.5 ns/op\t     702 B/op\t      15 allocs/op\nBenchmark_GORM_first\nBenchmark_GORM_first-6   \t  716335\t      1607 ns/op\t    3442 B/op\t      43 allocs/op\nPASS\nok  \tsnk.git.node1/dan/yoursql\t2.980s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-and-dna%2Fyoursql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan-and-dna%2Fyoursql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-and-dna%2Fyoursql/lists"}