Merci, that’s easy enough to read. Of course, there is always the The Computer Language Shootout (nsieve example) if you’re looking for more numbers.
Parand Tony Darugarsays:
If I’m reading this right the benchmark’s on the AMD Sempron, so the Intel compiler vs. GCC comparison may not apply. I doubt Intel has optimized their compiler for AMD.
Another lesson is that the managed, JIT-compiled languages produce programs that take a long time to start up. I would say that this argues against using them for small, interactive applications in which startup time is more of an issue. Of course, if you can precompile the program ahead of time to native code…
Also, whether a language A is truly faster than a language B depends on the developer. In Python, for instance, there are several constructs for creating loops, such as list comprehension, the map function, the for loops, and I suppose a recursive function is also an alternative.
But which of these provide the best performance (in the given situation)? The answer might not always be intuitive to the developer and hence, in reality, the result of benchmarking depends a great deal on the developer’s ability to avoid common pitfalls of the language.
Daniel, you seem not to have noticed the Intel Pentium 4 measurements – we’re continually re-working the website and benchmarks, so take another look, Java might look faster to you now.
; http://shootout.alioth.debian.org/
Thanks. Java looked fast, and it still looks fast. My problem is memory usage.
“the famous Intel C/C++ compiler is on par with GCC”
The link seems to compare GNU C with Intel C++ wouldn’t it be more reasonable to compare GNU C with Intel C – or GNU C++ with Intel C++ ?
These benchmarks show Python doing very well compared to Ruby and PHP.
Do you recognise any of the authors of the Haskell programs?
Now, do you recognise any of the authors of the Java programs?
Hmmm….
“Python is one of the fastest high level languages out there”
Compare with Lua. Compare with Chicken Scheme. Compare with VisualWorks Smalltalk.
Yes. There are all interesting all level languages faster than Python.
Look at Psyco.
Psyco looks more like an experiment at this point.
-Daniel
Isaac Gouysays:
Daniel, you seem not to have noticed the Intel Pentium 4 measurements – we’re continually re-working the website and benchmarks, so take another look, Java might look faster to you now. http://shootout.alioth.debian.org/
“the famous Intel C/C++ compiler is on par with GCC”
The link seems to compare GNU C with Intel C++ wouldn’t it be more reasonable to compare GNU C with Intel C – or GNU C++ with Intel C++ ?
Do you recognise any of the authors of the Haskell programs?
Now, do you recognise any of the authors of the Java programs?
“Python is one of the fastest high level languages out there”
Compare with Lua. Compare with Chicken Scheme. Compare with VisualWorks Smalltalk.
Look at Psyco.
i like the analysis with the exception of highly unintelligable relative terms used in certain cases to distinguish this heirarchy of importance between languages. keep it science. performance is the topic in comparison, not relativistic personal bias.
thanks again for the analysis, i got something out of it. 🙂
Daniel, cheers for putting this together! I was planning on doing this sometime soon, but you’ve taken all the work out of it.
Merci, that’s easy enough to read. Of course, there is always the The Computer Language Shootout (nsieve example) if you’re looking for more numbers.
If I’m reading this right the benchmark’s on the AMD Sempron, so the Intel compiler vs. GCC comparison may not apply. I doubt Intel has optimized their compiler for AMD.
Another lesson is that the managed, JIT-compiled languages produce programs that take a long time to start up. I would say that this argues against using them for small, interactive applications in which startup time is more of an issue. Of course, if you can precompile the program ahead of time to native code…
Also, whether a language A is truly faster than a language B depends on the developer. In Python, for instance, there are several constructs for creating loops, such as list comprehension, the map function, the for loops, and I suppose a recursive function is also an alternative.
But which of these provide the best performance (in the given situation)? The answer might not always be intuitive to the developer and hence, in reality, the result of benchmarking depends a great deal on the developer’s ability to avoid common pitfalls of the language.
Thanks. Java looked fast, and it still looks fast. My problem is memory usage.
Fixed. It doesn’t change the analysis.
http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=all
These benchmarks show Python doing very well compared to Ruby and PHP.
Hmmm….
Yes. There are all interesting all level languages faster than Python.
Psyco looks more like an experiment at this point.
-Daniel
Daniel, you seem not to have noticed the Intel Pentium 4 measurements – we’re continually re-working the website and benchmarks, so take another look, Java might look faster to you now.
http://shootout.alioth.debian.org/
“the famous Intel C/C++ compiler is on par with GCC”
The link seems to compare GNU C with Intel C++ wouldn’t it be more reasonable to compare GNU C with Intel C – or GNU C++ with Intel C++ ?
“PHP and Ruby are slow”
Slow at what? 🙂
http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=all
Do you recognise any of the authors of the Haskell programs?
Now, do you recognise any of the authors of the Java programs?
“Python is one of the fastest high level languages out there”
Compare with Lua. Compare with Chicken Scheme. Compare with VisualWorks Smalltalk.
Look at Psyco.
i like the analysis with the exception of highly unintelligable relative terms used in certain cases to distinguish this heirarchy of importance between languages. keep it science. performance is the topic in comparison, not relativistic personal bias.
thanks again for the analysis, i got something out of it. 🙂