A fast asyncio MySQL driver
pip install asyncmy2asyncmy - A fast asyncio MySQL/MariaDB driver
Introduction
asyncmy is a fast asyncio MySQL/MariaDB driver, which reuse most of pymysql
and aiomysql but rewrite core protocol with cython to
speedup.
This project is a community maintained fork of https://github.com/long2ice/asyncmy.
Features
- API compatible with aiomysql.
- Faster by cython.
- MySQL replication protocol support with
asyncio. - Tested both MySQL and MariaDB in CI.
Benchmark
The result comes from benchmark.
The device is iMac Pro(2017) i9 3.6GHz 48G and MySQL version is 8.0.26.

Conclusion
- There is no doubt that
mysqlclientis the fastest MySQL driver. - All kinds of drivers have a small gap except
select. asynciocould enhanceinsert.asyncmyperforms remarkable when compared to other drivers.