脚本语言性能比较:Ruby,Io,PHP,Python,Lua,Java,Perl...
来源:互联网 发布:隼龙 知乎 编辑:程序博客网 时间:2024/05/01 01:22
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 in each 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...
- C,Ruby, Io, PHP, Python, Lua, Java, Perl, Applescript, TCL, ELisp, Javascript, OCaml, Ghostscript性能比较
- 比较Perl、PHP、Python、Java和Ruby
- 比较Perl、PHP、Python、Java和Ruby
- Ruby, Io, PHP, Python, Lua, Java, Perl, Applescript, TCL, ELisp, Javascript, OCaml, Ghostscript, and C Fractal Benchmark
- Perl,Python,Ruby,Javascript 四种脚本语言比较
- Perl,Python,Ruby,Javascript四种脚本语言比较
- 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的比较
- Perl、PHP、Python、Java和Ruby的比较
- Perl、PHP、Python、Java和Ruby的比较
- 【转】Perl、PHP、Python、Java和Ruby的比较
- ruby python perl算阶乘性能比较
- php、python、ruby——web脚本语言的比较
- 洗浴与思考
- 后台任务
- Input Endpoint 和 Internal Endpoint的区别和作用
- 让table中的td文字自动换行(IE与fireFox)
- 如果老担心技术问题,以后看看原版的书籍,应该可以搞定的,如果弄通了远离,还担心什么?
- 脚本语言性能比较:Ruby,Io,PHP,Python,Lua,Java,Perl...
- c#实现http协议下的多线程
- 删除MySQL数据库
- Actor模型的本质:究竟是要解决什么问题
- div+css布局遇到的一些问题和解决方法
- 社区游戏中的社交状况
- C++程序的设计机制1:NVI机制(Non-Virtual Interface )
- 关于Html嵌入Applet的问题
- AC解 - 用动态规划解决一道排列组合计数问题(序关系计算)