{"id":15138502,"url":"https://github.com/zhaochuninhefei/web-performance-comparison","last_synced_at":"2025-10-23T15:30:29.931Z","repository":{"id":79214601,"uuid":"578125156","full_name":"zhaochuninhefei/web-performance-comparison","owner":"zhaochuninhefei","description":"一个web性能比较项目","archived":false,"fork":false,"pushed_at":"2025-01-11T16:11:40.000Z","size":30045,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T19:08:00.529Z","etag":null,"topics":["dotnet","gin","golang","java","kotlin","rust","springboot","vertx"],"latest_commit_sha":null,"homepage":"","language":"Java","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/zhaochuninhefei.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-12-14T10:13:12.000Z","updated_at":"2025-01-11T16:11:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"25210af3-1124-46ee-a30d-f0d3f7cd1d8e","html_url":"https://github.com/zhaochuninhefei/web-performance-comparison","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaochuninhefei%2Fweb-performance-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaochuninhefei%2Fweb-performance-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaochuninhefei%2Fweb-performance-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaochuninhefei%2Fweb-performance-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaochuninhefei","download_url":"https://codeload.github.com/zhaochuninhefei/web-performance-comparison/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237843779,"owners_count":19375202,"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","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","gin","golang","java","kotlin","rust","springboot","vertx"],"created_at":"2024-09-26T07:40:21.051Z","updated_at":"2025-10-23T15:30:28.117Z","avatar_url":"https://github.com/zhaochuninhefei.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"web-performance-comparison\n=====\n\n一个web框架性能比较项目，包括:\n- go + gin + gorm\n- java + springboot + mybatis\n- kotlin + quarkus + hibernate\n- kotlin + vertx\n- dotnet\n- rust\n\n\u003e 本项目只是个玩票性质的web性能比较，专业的还是去看techempower的测试结果：\n\u003e \n\u003e \u003ca href=\"https://www.techempower.com/benchmarks\" target=\"_blank\"\u003ehttps://www.techempower.com/benchmarks\u003c/a\u003e\n\n\n# 性能比较思路\n分别使用golang、java、kotlin的流行web框架，以及dotnet与rust，开发简单的HttpAPI应用，使用JMeter比较它们的性能表现。\n\n- 数据库统一使用MySQL8，并使用相同database的相同表。\n- HttpAPI实现相同的四个API: 单表插入、全表查询(1000件)、主键查询(1000件)、以及一个没有数据库读写的简单内存数据读取API。\n\n# 语言、框架与工具及其版本信息\n语言、框架与工具及其版本信息如下：\n- golang版本 : v1.17.5\n- gin版本 : v1.8.1\n- gorm版本 : v1.24.2\n- java版本 : openJDK-17.0.3\n- springboot版本 : 3.0.0\n- mybatis-spring-boot-starter版本 : 3.0.1\n- kotlin版本 : 1.7.21\n- quarkus版本 : 2.15.1.Final\n- hibernate版本 : 5.6.14.Final\n- vertx版本 : 4.3.7\n- JMeter版本 : 5.1.1\n- dotnet版本 : 6.0.404\n- rust版本 : 1.66.0\n\n# 目录说明\n```\nweb-performance-comparison\n├── db                  数据库相关资源\n├── deploy              docker编排文件目录\n├── jmeter              JMeter测试计划与结果\n├── web-pm-dotnet       dotnet WEB测试项目\n├── web-pm-gin          go+gin+gorm WEB测试项目\n├── web-pm-quarkus      kotlin+quarkus+hibernate WEB测试项目\n├── web-pm-rust         rust WEB测试项目\n├── web-pm-springboot   java+springboot+mybatis WEB测试项目\n└── web-pm-vertx        kotlin+vertx WEB测试项目\n```\n\n# 性能测试报告\n\n具体的性能测试报告参考:\n\n\u003ca href=\"./性能测试报告.md\" target=\"_blank\"\u003e性能测试报告\u003c/a\u003e\n\n\n# 感谢\n\n感谢\u003ca href=\"https://github.com/aaavieri\" target=\"_blank\"\u003eaaavieri\u003c/a\u003e提供了以下web项目的实现:\n\n- `web-pm-dotnet`\n- `web-pm-quarkus`\n- `web-pm-rust`\n- `web-pm-vertx`\n- `web-pm-vertx-java`\n\n\n# JetBrains support\nThanks to JetBrains for supporting open source projects.\n\nhttps://jb.gg/OpenSourceSupport.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaochuninhefei%2Fweb-performance-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaochuninhefei%2Fweb-performance-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaochuninhefei%2Fweb-performance-comparison/lists"}