7 ms·
"I don't think it's possible to make an implementation like CPython as fast as an engine like V8 or SquirrelFish Extreme that was designed to be fast above all
by Tichy 17y ago
"I don't think it's possible to make an implementation like CPython as fast as an engine like V8 or SquirrelFish Extreme that was designed to be fast above all else."
Are they saying that JavaScript is already faster than Python? I've only recently started using some Python, and while it seems to be a decent language, I have not yet seen much that would make me prefer it over JavaScript. Some things are a bit smoother in Python, others are smoother in JS. Here's hoping that JavaScript will win :-)
- jimmybot 17y agoAnyone have numbers on how much faster V8 is than CPython?
- spamizbad 17y agohttp://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=python&lang2=v8&box=1 http://shootout.alioth.debian.org/u32/benchmark.php?test=all... CPython is between 32 faster and 14 times slower than Google's V8. Most of the time, however, V8 is 2-6 times faster than Python. Overall, V8 is quicker. The authors of Unladen Swallow have talked a bit about performance challenges in optimizing - a big one is the fact that they're not breaking anything that depends on the CPython interpreter- include C-based modules, and even esoteric Python modules that modify python bytecode on the stack.
- alecco 17y agoWatching V8 and Python development progress, I bet V8 performance will improve significantly in the next couple of years. Also Python comes with the baggage of a much more complex language and feature set.
- igouy 17y ago> CPython is between 32 faster When the CPython program uses GMP and the JavaScript program doesn't.
- rbranson 17y agoV8 is very impressive. It is one of the fastest virtual machines for dynamic languages. Look where it scores on the shootout. http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=all&box=1 http://shootout.alioth.debian.org/u32/benchmark.php?test=all... It is nearly 10x faster than Ruby 1.8 and 5x faster than CPython. Of the shootout, it is the fastest dynamically typed language other than LuaJIT.