Programming Languages Comparision

来源:互联网 发布:无线存储卡软件 编辑:程序博客网 时间:2024/05/17 08:14
The latest computer language benchmarks from
http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all

[Note: Java 6.04,  SML-Mlton, Ocaml, D 已经有了不错的性能上的提升了。]

Gentoo : Intel® Pentium® 4


Computer Language Benchmarks Game 

 Create your own Ranking

What fun! Can you manipulate the multipliers and weights to make your favourite language the best programming language in the Benchmarks Game?


  x  languagemean-1.0C++ GNU g++1.2021.1C GNU gcc1.3521.2D Digital Mars1.4121.2Clean1.4831.3Pascal Free Pascal1.5221.5Oberon-2 OO2C1.7571.5Haskell GHC1.7811.6Eiffel SmartEiffel1.8931.7SML MLton2.0641.8OCaml2.1131.8Lisp SBCL2.1131.8BASIC FreeBASIC2.1721.8Java 6 -server2.1912.0Ada 2005 GNAT2.3722.0Scala2.4612.4C# Mono2.8822.4CAL2.9412.7Nice3.2413.0Forth bigForth3.6633.2Fortran G953.8765.7Erlang HiPE6.8519.0Smalltalk VisualWorks10.8619.3Scheme MzScheme11.20712Lua14.90314Mozart/Oz17.11217Pike20.82418Python21.07120Perl24.15323PHP27.12347Tcl56.24349JavaScript SpiderMonkey59.33654Ruby65.41265Prolog SWI77.699
multipliersFull CPU TimeMemory UseGZip Bytesbenchmarkweightbinary-trees

chameneos-redux (new)

fannkuch

fasta

k-nucleotide

mandelbrot

meteor-contest

n-body

nsieve

nsieve-bits

partial-sums

pidigits

recursive

regex-dna

reverse-complement

spectral-norm

startup

sum-file

thread-ring (new)

 about the Ranking

(Language implementations with more than a couple of Timeoutsdistort the ranking - so they have been excluded. They can still be compared directly against another language implementation.)

For each benchmark, the best measurement B is the lowest non-zero measurement. For each language implementation, the measurement L for the language implementation is converted to the ratio L/B

The ratio can be adjusted by a measurement multiplier (make CPU time or memory use orlines-of-code more or less important) and by a benchmark weight (make particular benchmarks more or less important).

For each language implementation, we report the Weighted Geometric Mean of those L/B ratios.

Java VS C# mono:

Compare the performance of Java 6 -server programs against some other language implementation, or check the Java CPU time and Memory use measurements.

For more information about the Java implementation we measured see↓ about Java 6 -server.

Compare to:

 Are the Java 6 -server programs better?

For each of one our benchmarks, a white bar shows which languageimplementation had the faster program, and a black bar shows which usedthe least memory.

 How many times better?

How many times faster or smaller are the Java 6 -server programs than the corresponding C# Mono programs?

Java 6 -server x times better
~ C# Mono x times better
Program & Logs Faster Smaller: Memory UseSmaller: GZip BytesReduced Nbinary-trees1.2~1.61.0
chameneos-redux (new)No program


fannkuch1.6~1.9~1.4
fasta1.2~2.2~1.1
k-nucleotide1.11.1~1.0
mandelbrot2.2~2.2~1.3
meteor-contest  No Monon-body1.8~2.2~1.0
nsieve~1.0~1.5~1.3
nsieve-bits1.1~1.7~1.4
partial-sums~1.6~2.4~1.0
pidigits~1.1~2.01.1
recursive1.1~2.21.0
regex-dna2.42.4~1.1
reverse-complement~1.2~2.0~1.2
spectral-norm1.9~2.6~1.1
startup~2.0 1.1
sum-file2.3~2.3~1.1
thread-ring (new)1.3~2.1~1.1

 about Java 6 -server

java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)



原创粉丝点击