{"id":25073792,"url":"https://github.com/chris2018998/poolperformance","last_synced_at":"2025-08-01T07:37:43.242Z","repository":{"id":110397923,"uuid":"200069810","full_name":"Chris2018998/PoolPerformance","owner":"Chris2018998","description":"JDBC Connection Pool Performance Test source","archived":false,"fork":false,"pushed_at":"2020-10-15T13:13:07.000Z","size":14978,"stargazers_count":11,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T23:34:01.613Z","etag":null,"topics":["connection-pool","java","jdbc"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Chris2018998.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,"zenodo":null}},"created_at":"2019-08-01T14:52:15.000Z","updated_at":"2021-06-16T14:26:59.000Z","dependencies_parsed_at":"2023-05-06T14:54:11.583Z","dependency_job_id":null,"html_url":"https://github.com/Chris2018998/PoolPerformance","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chris2018998/PoolPerformance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chris2018998%2FPoolPerformance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chris2018998%2FPoolPerformance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chris2018998%2FPoolPerformance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chris2018998%2FPoolPerformance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chris2018998","download_url":"https://codeload.github.com/Chris2018998/PoolPerformance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chris2018998%2FPoolPerformance/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268185565,"owners_count":24209394,"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-08-01T02:00:08.611Z","response_time":67,"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":["connection-pool","java","jdbc"],"created_at":"2025-02-06T23:33:56.721Z","updated_at":"2025-08-01T07:37:43.222Z","avatar_url":"https://github.com/Chris2018998.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"工具说明\n---\nJDBC连接池性能测试\n\n测试目标\n---\n以单线程或多线程访问连接池100万次，并打印耗时分布，平时耗时，失败次数等，最后依据平均耗时对各连接池进行排名。\n\n单次耗时说明\n---\n1：取连接耗时 [datasource.getConenciton(), conneciton.close()]\n\n2：查询耗时   [datasource.getConenciton(), conneciton.prepareStatement(), statement.execute(), conneciton.close()]\n\n连接池清单(版本请见lib目录)\n---\n1：DBCP，       老牌连接池\n\n2：DBCP2        老牌连接池\n\n3：C3P0         老牌连接池\n\n4：TOMCAT-JDBC  Tomcat新开发的连接池\n\n5：Vibur        (暂未了解)\n\n6：Druid        德鲁伊连接池(阿里知名JDBC专家温少开发)\n\n7：HikariCP    ‘光’连接池(美国大咖开发，被很多人追捧为Java世界最快的连接池)\n\n8：BeeCP       小蜜蜂连接池（学习锻炼小作品，请从这里 (https://github.com/Chris2018998/BeeCP) 下载最新Jar包，并放入lib）\n\n各连接池的性能测试结果，请访问地址：https://github.com/Chris2018998/BeeCP\n\n\n测试配置与工具:\n---\n1：Java:     Java8_64(推荐使用最新版本的Java8)\n\n2：Driver：  支持JDBC标准接口的驱动均可\n\n3：CPU:     频率尽量高，推荐使用新版64位多核CPU\n\n4：内存：    8G(尽量高点)\n\n\n执行文件说明\n---\n1：run/TestMutilBorrow.bat  (多线程并发取连接：默认1000个线程各自执行1000次）\n\n2：run/TestMutilQuery.bat   (多线程并发取查询：默认1000个线程各自执行1000次）\n\n3: run/TestSingleBorrow     (单线程并发取连接: 默认1个线程各自执行100万次）\n\n4: run/TestSingleQuery.bat  (单线程并发取查询：默认1个线程各自执行100万次）\n\n5: run/TestAll.bat          (执行上述4个测试））\n\n6: run/Link.properties      (测试参数配置文件）\n\n*提示：测试前，请先设置JAVA_HOME(setJAVA_HOME.bat)\n\n测试使用的表\n---\n\nDROP TABLE TEST_USER;\n\nCREATE TABLE TEST_USER(\n\n  USER_ID     VARCHAR(10),\n  \n  USER_NAME   VARCHAR(10)\n  \n);\n\n可依据实际情况再调整，编译后打包替换文件:lib/performance.jar\n\n交流与讨论\n---\n\nEmail:Chris2018998@tom.com\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris2018998%2Fpoolperformance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchris2018998%2Fpoolperformance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris2018998%2Fpoolperformance/lists"}