DMIT frp 穿透性能压测报告

2026-04-13 | Go (uvicorn-like) vs Python (FastAPI+uvicorn) | Mac mini M4 → DMIT HKG.AS3.T1.WEE

测试链路

客户端
DMIT 本地 / Mac mini
Caddy
HTTPS 反向代理
154.3.34.132:443
frp TCP
TLS 加密隧道
DMIT → Mac mini
Web App
Go / Python
127.0.0.1:8090
Database
Redis + PostgreSQL
Docker 容器
423
穿透 Ping QPS (Go)
242
穿透 PG Write QPS
0%
Go 失败率
23%
Python Ping 失败率
41,016
本地 Ping QPS
15,942
本地 PG Write QPS
~100x
frp 衰减倍数
80-120ms
穿透链路延迟

穿透场景对比 — Python vs Go(DMIT 本地发起)

Go 版本 — 三种发起方式对比

frp 穿透衰减倍数(本地 vs 穿透)

各场景平均延迟对比(ms)

完整测试数据

场景发起位置并发语言QPS平均延迟失败率
pingDMIT 本地50Python405123ms23%
pingDMIT 本地50Go423118ms0%
Redis WriteDMIT 本地20Python193104ms0%
Redis WriteDMIT 本地20Go22987ms0%
PG WriteDMIT 本地20Python191105ms0%
PG WriteDMIT 本地20Go24283ms0%
MixedDMIT 本地10Python10199ms0%
MixedDMIT 本地10Go12183ms0%
pingMac mini 本地50Go41,0161.2ms0%
Redis WriteMac mini 本地50Go34,7451.4ms0%
PG WriteMac mini 本地50Go15,9423.1ms0%
MixedMac mini 本地20Go1,51013.2ms0%
pingMac mini → DMIT50Go69~14ms0%
Redis WriteMac mini → DMIT50Go135~7ms0%
MixedMac mini → DMIT20Go132~8ms0%

结论