Java的对C#:是否有任何比较它们的执行速度的研究?它们的、有任何、速度、Java

2023-09-02 10:36:07 作者:填补距离

考虑所有相关的基准和基准比较明显的警告,是有没有研究(有据可查,公正的测试的阵列)比较了上面提到的两个语言的平均执行速度? 谢谢

Taking out all of the obvious caveats related to benchmarks and benchmark comparison, is there any study (an array of well documented and unbiased tests) that compares the average execution speed of the two mentioned languages? Thanks

推荐答案

最好的比较,我知道的是计算机语言基准游戏。

The best comparison that I am aware of is The Computer Language Benchmarks Game.

它比较速度,内存使用和来源$ C ​​$ C尺寸在大量的编程语言(目前)11基准。基准的实现是用户提交的,有continouous改进,因此在积分榜上游移一些。

It compares speed, memory use and source code size for (currently) 11 benchmarks across a large number of programming languages. The implementations of the benchmarks are user-submitted and there are continouous improvements, so the standings shift around somewhat.

所有的比较都是做在Linux上,因此它是衡量C#/单声道,而不是C#/ Microsoft.NET。但它是我的即时通讯pression这两个是在速度现在。

All comparisons are done on Linux, so it is C#/Mono that is measured and not C#/Microsoft.NET. But it is my impression that those two are comparable in speed nowadays.

目前Java是制胜的速度,但C#/单声道赢了内存使用。< /一>,但请注意,由于某种原因,Java实现是多线程的,而大部分的C#/单声道的实现是单线程。

Currently Java is winning on speed, but C#/Mono is winning on memory use., but note that for some reason the Java implementations are multithreaded, while most of the C#/Mono implementations are singlethreaded.