Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有这方面的基准???
(我尝试用谷歌搜索一些结果,但没有找到......
我无法测试 gmpy,因为我的笔记本电脑上不会安装 gmplib)
谢谢你!
首先,我可能有偏见,因为我是 gmpy 的维护者。
gmpy 使用 GMP 多精度库,GMP 通常被认为是最快的通用多精度库。但是什么时候“最快”取决于操作和值的大小。当我比较 Python longs 和 gmpy 的 mpz 类型之间的性能时,交叉点大致在 20 到 50 位之间。你可能会在你的机器上得到不同的结果。
你到底想做什么?