3 ms·
Well, don't read too much into it. Here is the Java source for binary-trees, which is 6x faster than c#. http://shootout.alioth.debian.org/u64q/program.php?tes
by jeswin 15y ago
Well, don't read too much into it.
Here is the Java source for binary-trees, which is 6x faster than c#.
http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=java&id=1 http://shootout.alioth.debian.org/u64q/program.php?test=bina...
C#:
http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=csharp&id=2 http://shootout.alioth.debian.org/u64q/program.php?test=bina...
Notice that the Java code multi-threaded, while the C# version is single-threaded. And the Q6600 being used there has 4 cores.
- igouy 15y agoNotice that there's another Java program which is single-threaded but still uses more than one-core (figure out why) - http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=java&id=2 http://shootout.alioth.debian.org/u64q/program.php?test=bina...