阅读更多
玩点技术PK比较 ruby对 某某 -不一定当真
http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all
性能比较
And remember, "For every complex problem, there is a solution that is simple, neat, and wrong."
ratio language score ×
best possible 100.0
1.0 C gcc 69.8
1.0 D Digital Mars 68.0
1.2 Clean 59.8 3
1.3 OCaml 53.6
1.3 Eiffel SmartEiffel 52.5 2
1.3 Haskell GHC 52.1
1.5 C++ g++ 48.0
1.5 SML MLton 48.0 1
1.7 Java JDK -server 42.3 1
1.8 Nice 39.8 2
1.9 Ada 95 GNAT 35.9 1
2.0 Oberon-2 OO2C 34.1 7
2.1 Pascal Free Pascal 33.1 4
2.2 Scala 31.3 3
2.3 Lisp SBCL 30.6 4
2.5 BASIC FreeBASIC 27.8 4
2.6 Fortran G95 26.9 5
2.6 C# Mono 26.7 1
3.8 Erlang HiPE 18.4 1
4.9 Forth GForth 14.3 1
5.3 Smalltalk VisualWorks 13.3 1
6.0 Lua 11.6
7.3 Pike 9.6 2
7.6 Python 9.2
8.4 Tcl 8.3 3
9.4 Scheme MzScheme 7.4 3
9.8 Perl 7.1 3
12 PHP 5.9 3
13 Smalltalk GST 5.2 1
15 Icon 4.7 6
17 Ruby 4.1 1
73 JavaScript SpiderMonkey 1.0
评分ruby 靠后
实际输入 ruby 对 perl
http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=ruby
至少可以
动手PK, 过瘾吧