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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

New Computer Language Benchmarks Game metric: time + source code size

47 点作者 benstrumental将近 3 年前

12 条评论

sidkshatriya将近 3 年前
Geometric mean of (time + gzipped source code size in bytes) seems statistically wrong.<p>What if you shifted time to nanoseconds ? Or source code size in terms of Megabytes. The rankings could change. The culprit is the &#x27;+&#x27;<p>I would think Geometric mean of (time x gzipped source code size) is the correct way to compare languages together. It would not matter what the units of time or size are in that case.<p>[Here the geometric mean is the geometric mean of (time x gzipped size) of all benchmark programs of a particular language.]
评论 #31585880 未加载
评论 #31591927 未加载
评论 #31587783 未加载
评论 #31586922 未加载
agentgt将近 3 年前
I really wish they aggregated the metric of build time (+ whatever).<p>That is a huge metric I care about.<p>You can figure out it somewhat by clicking on each language benchmark but it is not aggregated.<p>BTW as biased guy in the Java world I can tell you this is one area Java is actually mostly the winner even beating out many scripting languages apparently.
评论 #31588987 未加载
_b将近 3 年前
I&#x27;d be interested to see &quot;C compiled with Clang&quot; added as another language to the benchmark games. In part, digging into Clang vs gcc benchmarks is always interesting, and in part, as Rust &amp; Clang share the same LLVM backend, it would shed light on how much of the C vs Rust difference is from frontend language stuff vs backend code gen stuff.
评论 #31586976 未加载
IshKebab将近 3 年前
With a totally arbitrary conversion of 1 second = 1 gzipped byte.<p>This is basically meaningless. I don&#x27;t see why you&#x27;d even need to do this. You can easily show code size <i>and</i> performance on the same graph.
NeutralForest将近 3 年前
This presentation is pretty bad, there should be more context, some kind of color scheme or labels instead of text in the background, spacing between the languages represented, other benchmarks than the geometric mean, etc.
评论 #31585990 未加载
kibwen将近 3 年前
For comparing multiple implementations of a single benchmark in a single language, this sort of data would be interesting as a 2D plot, to see how many lines it takes to improve performance by how much. But for cross-language benchmarking this seems somewhat confounding, as the richness of standard libraries varies between languages (and counting the lines of external dependencies sounds extremely annoying, not only because you have to decide whether to include standard libraries (including libc), you also need to find a way not to penalize those for having many lines devoted to tests).
评论 #31586243 未加载
评论 #31585757 未加载
评论 #31585973 未加载
Thaxll将近 3 年前
The thing they should change is to forbid the nonsense like:<p><a href="https:&#x2F;&#x2F;benchmarksgame-team.pages.debian.net&#x2F;benchmarksgame&#x2F;program&#x2F;nbody-csharpcore-9.html" rel="nofollow">https:&#x2F;&#x2F;benchmarksgame-team.pages.debian.net&#x2F;benchmarksgame&#x2F;...</a><p>Actually if you look at all the top net core submissions the only one fast are the one using low level intrinsics etc ...
评论 #31586573 未加载
评论 #31587666 未加载
arunc将近 3 年前
Just curious, why does this benchmark not include D language? I remember seeing it a few years ago. Was it removed recently?
评论 #31589928 未加载
cpurdy将近 3 年前
Predictably, &quot;The Computer Language Benchmarks Game&quot; once again proves the worthlessness of &quot;The Computer Language Benchmarks Game&quot;.<p>This thing has been a long running joke in the software industry, exceeded only by the level of their defensiveness.<p>SMH.
guenthert将近 3 年前
I think APL had already shown, that brevity in itself is not desirable.
Shadonototra将近 3 年前
these pseudo benchmarks should be banned
hexo将近 3 年前
I dont buy these results at all. Julia at second place looks like plain lie and complete nonsense, to the point I&#x27;m gonna look into this and run it myself.<p>After trying hard to use julia for about a year and I came to conclusion it&#x27;s one of the slowest things around. Maybe the stuff changed? Maybe, but julia code still remains incorrect.<p>I hope they fix both things, speed (including start up speed, it counts A LOT) and correctness.
评论 #31588406 未加载