根据基准测试,Python远远不是最佳表现者...... [英] Python is far from a top performer according to benchmark test...
问题描述
Nine Language Performance Round-up:Benchmarking Math& amp;文件I / O
http://www.osnews .com / story.php?news_id = 5602
我认为这是一个不公平的比较!我不打算用Python开发一个
数值应用程序而不使用预建的数值库
和数据对象,如字典和列表。
>
我一直在用Python中的数值算法进行实验,并使用Numeric模块进行大量的b
。我的经验是,在与b
或C ++等传统语言比较(有时甚至快)时,Python的速度非常快。
Python的最大优势是生产力的大幅提升,并且由于非常干净且结构紧凑的Python结构,产生了更少数量的错误邀请你制作。有时候我会惊讶地发现,我可以用Python生成一个有效的算法。从纸上的
算法大纲到工作代码的步骤非常短。 Python控制台的
交互性质邀请数值实验
和数据探索。这篇文章没有提到,真可惜!
Carl
"Nine Language Performance Round-up: Benchmarking Math & File I/O"
http://www.osnews.com/story.php?news_id=5602
I think this is an unfair comparison! I wouldn''t dream of developing a
numerical application in Python without using prebuilt numerical libraries
and data objects such as dictionaries and lists.
I have been experimenting with numerical algorithms in Python with a heavy
use of the Numeric module. My experience is that Python is quite fast in
comparison with (and sometimes as fast as) traditional languages such as C
or C++.
The greatest advantage of Python is the great increase in productivity and
the generation of a much smaller number of bugs due to the very clean and
compact structure Python invites you to produce. Sometimes it amazes me how
fast I can produce a working algorithm in Python. The step from an
algorithmic outline on a paper to a working code is very short. The
interactive nature of the Python console invites numerical experimentation
and data exploration. This wasn''t mentioned in the article, what a pity!
Carl
推荐答案
Carl写道:
Carl wrote:
" Nine Language Performance Round-up:Benchmarking Math&文件I / O
http://www.osnews .com / story.php?news_id = 5602
"Nine Language Performance Round-up: Benchmarking Math & File I/O"
http://www.osnews.com/story.php?news_id=5602
这个基准在slashdot的讨论中被打败了。
这是一个真正愚蠢的基准(大多数基准都是)IMNSHO。
我的意思是,使用python'的'数学'的任意精度长对象>
并将其与其他语言的长/机器类型/ ......进行比较。
这只是其中一个缺陷。
- Irmen
This benchmark is beaten to pulp in the discussion about it on slashdot.
It''s a real stupid benchmark (as most benchmarks are) IMNSHO.
I mean, using python''s arbitrary precision long object for ''math''
and comparing it to the other languages'' long /machine types/... come on.
And thats just one of the flaws.
--Irmen
" Carl" < pH值*********** @ chello.se>在消息中写道
news:ryELb.238
"Carl" <ph***********@chello.se> wrote in message
news:ryELb.238
tK2.228@amstwist00 ...
tK2.228@amstwist00...
我去过使用Numeric模块重复使用Python中的数值算法。我的经验是,与C
或C ++等传统语言(有时甚至更快)相比,Python相当快。
I have been experimenting with numerical algorithms in Python with a heavy
use of the Numeric module. My experience is that Python is quite fast in
comparison with (and sometimes as fast as) traditional languages such as C
or C++.
大量使用数字模块你在调用函数
用C语言编写。所以当C代码完成所有工作时,你怎么能说Python很快,
。
>
Stach
With "heavy use of Numeric module" you were calling functions
written in C. So how can you say that Python is fast,
when C code is doing all the work.
Stach
这篇关于根据基准测试,Python远远不是最佳表现者......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!