GoForum🌐 V2EX

借助 AI,我让 asyncmy 成为了最快的 Python MySQL/MariaDB 驱动

loveshuyuan · 2026-08-12 13:02 · 0 次点赞 · 1 条回复

项目地址: https://github.com/long2ice/asyncmy

Test asyncmy Rank Performance
Large Result Set (33k rows, all types) 🏆 #14 0.030s — 2.2x faster than mysqlclient, 5.3x faster than aiomysql
Connection Pool (2k queries) 🏆 #12 ~17,000 qps — 2x aiomysql’s throughput
Concurrent Queries (50 connections) 🏆 #12 ~8,000 qps — 1.6x faster than aiomysql
Batch Insert (10k rows) 🏆 #14 ~107,000 rows/sec — fastest of all four drivers

项目停止活跃了一段时间,主要是没有精力去维护了。最近突发奇想尝试用 Claude Code 去优化一下性能啥的,结果还不错,横向对比 pymysql/aiomysql/mysqlclient 性能都是第一,详细的 benchmark 可以参考:https://github.com/long2ice/asyncmy/blob/dev/benchmark/README.md

另外还借助 Claude Code 把所有的 issue 和 PR 都关闭了,看起来清爽多了。

顺便再求个 star 吧,谢谢。

1 条回复
tf2 · 2026-08-12 13:42
#1

这活儿放在 2023 年之前高低也能轰动社区。。但是现在 AI 多了反而不敢用了。。。

添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: loveshuyuan
发布: 2026-08-12
点赞: 0
回复: 0