脚本语言性能比较:Ruby,Io,PHP,Python,Lua,Java,Perl...
2011-05-26 14:51
1246 查看
Ruby, Io, PHP, Python, Lua, Java, Perl, Applescript, TCL, ELisp, Javascript, OCaml, Ghostscript, and C Fractal Benchmark
I've always enjoyed fractals, and was curious if scripting languages were up to the task. I wrote a very simple Mandelbrot set generator for my test. Rather than optimizing for each language, I tried to write each program in approximately the same way ineach language to make a reasonable performance comparison.
Here are the results from running on my 867 mhz Powerbook G4. Shorter is better. Please note, the following benchmarks are not scientific, and were simply done to satisfy my curiosity. Your mileage may vary.
Feel free to send me ports to any other languages. The program should print the time in seconds that elapsed at the bottom in the form of 'Elapsed %0.2f'. If you can, include instructions for building on MacOS X.
— Erik Wrenholt (erik -at- timestretch.com) 2005-09-20
相关文章推荐
- 脚本语言性能比较:Ruby,Io,PHP,Python,Lua,Java,Perl...
- 脚本语言性能比较:Ruby,Io,PHP,Python,Lua,Java,Perl...
- C,Ruby, Io, PHP, Python, Lua, Java, Perl, Applescript, TCL, ELisp, Javascript, OCaml, Ghostscript性能比较
- C,Ruby, Io, PHP, Python, Lua, Java, Perl, Applescript, TCL, ELisp, Javascript, OCaml, Ghostscript性能比较
- Ruby, Io, PHP, Python, Lua, Java, Perl, Applescript, TCL, ELisp, Javascript, OCaml, Ghostscript, and C Fractal Benchmark
- 脚本语言语言脚本语言:Shell , JavaScript、VBScript、Perl、PHP、Python、Ruby、Lua
- 强弱类型,动态静态语言比较(JAVA,C,C++,Python,Ruby,PHP,Perl)
- 【转】语言简评:比较Perl、PHP、Python、Java和Ruby
- Java, Python, Ruby, PHP, C等语言性能对比
- Perl、PHP、Python、Java和Ruby的比较
- 比较Perl、PHP、Python、Java和Ruby 【转载】
- Perl、PHP、Python、Java和Ruby的比较
- Perl、PHP、Python、Java和Ruby的比较
- 比较Perl、PHP、Python、Java和Ruby
- Perl、PHP、Python、Java和Ruby的比较
- 在线编程语言模拟(Java,C,Python,R语言,Ruby,PHP,Perl,Go等)
- Java, Python, Ruby, PHP, C等语言性能对比
- 用数据阐述Java, Python, Ruby, PHP, C等各语言性能对比
- Perl、PHP、Python、Java和Ruby的比较
- Python、Lua和Ruby比较——脚本语言大P.K.