计算机科学 > 数学软件
[提交于 2020年1月14日]
标题:Comparing Python, Go, and C++ on the N-Queens Problem
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Python currently is the dominant language in the field of Machine Learning but is often criticized for being slow to perform certain tasks. In this report, we use the well-known $N$-queens puzzle as a benchmark to show that once compiled using the Numba compiler it becomes competitive with C++ and Go in terms of execution speed while still allowing for very fast prototyping. This is true of both sequential and parallel programs. In most cases that arise in an academic environment, it therefore makes sense to develop in ordinary Python, identify computational bottlenecks, and use Numba to remove them.
提交历史
来自:Krzysztof Lis[v1] 2020年1月14日 星期二 00:00:00 UTC