arXiv Artificial Intelligence· Peng Ding, Rick Stevens·· 19 小时前AI 评分41
用 LLM 生成零依赖 Python 库:stdlib 与第三方库的性能和正确性对比
Stdlib or Third-Party? Empirical Performance and Correctness of LLM-Assisted Zero-Dependency Python Libraries
AI 导读
研究基于 zerodep 测试集,用 44 个仅依赖标准库的单文件 Python 模块(覆盖 12 个类别)与各自参考库对比,发现多数场景下 stdlib 实现性能相当(2 倍以内),部分在架构开销主导时快 5x-115x,但图像处理、二进制序列化、底层加密等依赖 C 扩展的计算存在明显性能断崖。
来源:arXiv Artificial Intelligence · arxiv.org