TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Which programming languages are the fastest?

18 点作者 hitechsites大约 14 年前
Surprised that LISP is 20x faster than PHP or Perl in this benchmark (median times). It is even faster than Python and of course Ruby.

2 条评论

angusgr大约 14 年前
As the page says, "No. Which programming language implementations have the fastest benchmark programs?"<p>Which begs the question - aside from macho bragging rights, exactly what good is this kind of information?<p>Assume I did have a specific problem case for which performance in terms of memory, time or LoC mattered. As a first step, I'd write a specific benchmarkable implementation of my own problem (or one very like it.) Then I'd need to profile and optimise that implementation in my chosen language(s), as well as stop and think laterally about ways I might be able to optimise around that specific problem.<p>This is all assuming I'm working on a greenfields project where I have absolute free choice of language &#38; runtime environment. Which happens for my personal projects, but never yet for a professional one.<p>Not to mention that in all other cases apart from this hypothetical where performance matters, I would take the most human-readable program over the most fast, lean or concise one.<p>Long story short, at no point can I see myself stopping and saying to myself. "You know what I need now? I need to see which programming language can generate a Mandelbrot set bitmap with the smallest memory footprint, without using any 'unfair' optimisation techniques."
评论 #2504444 未加载
评论 #2504502 未加载
评论 #2504428 未加载
评论 #2504581 未加载
lvh大约 14 年前
I seem to remember that at one point, Pypy, Luajit and perhaps a Ruby interpreter were removed from the races.<p>Anyone have any details on why that happened? These destroyed my ability to link to the shootout as data for showing that languages don't matter as much as implementations do, a nuance many newbies miss :(
评论 #2504378 未加载
评论 #2504387 未加载
评论 #2504464 未加载