Programming Languages Comparision

2024-03-01 11:32

本文主要是介绍Programming Languages Comparision,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

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.202
1.1GNU gcc1.352
1.2Digital Mars1.412
1.2Clean1.483
1.3Pascal Free Pascal1.522
1.5Oberon-2 OO2C1.757
1.5Haskell GHC1.781
1.6Eiffel SmartEiffel1.893
1.7SML MLton2.064
1.8OCaml2.113
1.8Lisp SBCL2.113
1.8BASIC FreeBASIC2.172
1.8Java 6 -server2.191
2.0Ada 2005 GNAT2.372
2.0Scala2.461
2.4C# Mono2.882
2.4CAL2.941
2.7Nice3.241
3.0Forth bigForth3.663
3.2Fortran G953.876
5.7Erlang HiPE6.851
9.0Smalltalk VisualWorks10.861
9.3Scheme MzScheme11.207
12Lua14.903
14Mozart/Oz17.112
17Pike20.824
18Python21.071
20Perl24.153
23PHP27.123
47Tcl56.243
49JavaScript SpiderMonkey59.336
54Ruby65.412
65Prolog SWI77.699
multipliers
Full CPU Time
Memory Use
GZip Bytes
benchmarkweight
binary-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 Timeouts distort 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 or lines-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 language implementation had the faster program, and a black bar shows which used the 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 N
binary-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 Mono
n-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)



这篇关于Programming Languages Comparision的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/762316

相关文章

Nordic Collegiate Programming ContestNCPC 2021

Date:October 9, 2021 Dashboard - 2021-2022 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2021) - Codeforces Problem - C - Codeforces--Customs ControlsProblem - C - Codeforces- 题意:给定一个n个点,m条边

强化学习实践(二):Dynamic Programming(Value \ Policy Iteration)

强化学习实践(二):Dynamic Programming(Value \ Policy Iteration) 伪代码Value IterationPolicy IterationTruncated Policy Iteration 代码项目地址 伪代码 具体的理解可以看理论学习篇,以及代码中的注释,以及赵老师原著 Value Iteration Policy Itera

SAP CAP(Cloud Application Programming)知识介绍和学习路径

1. 框架简介 1.1 什么是CAP? CAP(Cloud Application Programming)是SAP推出的一种现代化开发框架,旨在简化和加速云原生应用程序的开发。 CAP框架基于开放标准和技术,如Node.js、Java、OData和SQL,提供了一套工具和库,帮助开发人员快速构建、扩展和运行企业级应用。 1.2 CAP的基础技术框架 CAP框架主要由以下几个部分组成:

指针 C programming

”许久未曾提笔,心湖泛起涟漪。“ 概念:指针是一种将另一个变量的内存地址存储 为其值的变量。 int a = 1;printf("%d", a); // 打印的是 变量a 的 存储地址 位置上 存储的 值printf("%p", (void*)&a); // 打印的是 变量a 本身的 地址值int *p = &a; // & 符号是取地址符 所以这行代码的意思是取变量a的本身存储地

Focus On 3D Terrain Programming·Chapter 5(1)

写在前面的话 原著:《Focus On 3D Terrain Programming》 章节:Chapter5 Geomipmapping for the CLOD Impaired 说明:图形渣、英语渣,学习的同时记录下来的(主要是不翻译就读不下去TT),希望能和大家相互交流学习,翻译有误的地方欢迎指出^^ 正文开始↓ 哦吼!你将要学习地形编程中的核心内容,里面包含了相当复杂的算法。实

HDU 5240 E - Exam(2015 ACM-ICPC China Shanghai Metropolitan Programming Contest)

题目链接:click here~~ 【题目大意】DRD要参加考试,考试前需要ri个准备时间,考试在ei时间后开始,考试持续li时间,给出多场考试时间安排表,问能否通过所有考试? 【解题思路】不知道是不是数据水还是题目就是这样的,直接判断ri和ei输出结果居然就过了,如果在现场赛能有这样的人品就好了。。 代码: #include <stdio.h>#include <math.h>#

《Programming from the Ground Up》阅读笔记:p95-p102

《Programming from the Ground Up》学习第6天,p95-p102总结,总计8页。 一、技术总结 1.directive(伪指令) 很多资料喜欢把directive和instruction都翻译成“指令”,这样在看到指令这个词时就不知道到底指的是什么?这里参考其它人的做法,将directive称为“伪指令”。 2.rept & .endr 语法: .rept

《Programming from the Ground Up》阅读笔记:p103-p116

《Programming from the Ground Up》学习第7天,p103-p116总结,总计14页。 一、技术总结 1.读写文件 (1)linux.s linux.s: #file name:linux.s# system call numbers(按数字大小排列,方便查看).equ SYS_READ, 0.equ SYS_WRITE, 1.equ SYS_OPEN,

Hitachi Vantara Programming Contest 2024(AtCoder Beginner Contest 368)ABCDEF

前言 F比E简单多了,难评 A题:Cut 题意 给定n张卡片,将后m张卡片按顺序放置到顶部,按顺序输出卡片id 思路 更改输出方式即可 代码 inline void solve() {int n, m; cin >> n >> m;vector<int> a(n + 1);for (int i = 1; i <= n; i ++ ) cin >> a[i];for (int i =

Java Programming Examples

Java Programming Examples Example - Environment How to compile a java file? How to debug a java file? How to set classpath? java -cpjava -classpath How to view current classpath? windows C:> e