Re:Rust on Computer Language Benchmarks Game
by hangonhn on Thursday February 13, 2014 @02:49PM
(#7233772)
Anyone else a bit shocked by how well Javascript on V8 performs? I might need to rethink my assumptions but it actually runs faster than Python 3 according to this.
[ Parent
| on HN ]
Re:Rust on Computer Language Benchmarks Game
by wmf on Thursday February 13, 2014 @02:53PM
(#7233808)
Yes, a very advanced JIT is faster than an interpreter.
Re:Rust on Computer Language Benchmarks Game
by frik on Thursday February 13, 2014 @02:58PM
(#7233849)
Python 3 is slow, one should compare PyPy, HHVM-PHP, LuaJIT, etc.
A company did that back in Dezember: http://www.techempower.com/benchmarks/#section=data-r8&hw=i7... (found it on HN)
Revel uses LuaJIT (afaik), HHVM is HipHop PHP (Facebook) and you can find PyPy there too.
Re:Rust on Computer Language Benchmarks Game
by RyanZAG on Thursday February 13, 2014 @03:51PM
(#7234230)
That benchmark isn't benchmarking what you think it is.
"This test exercises database writes. Each request is processed by fetching multiple rows from a simple database table, converting the rows to in-memory objects, modifying one attribute of each object in memory, updating each associated row in the database individually, and then serializing the list of objects as a JSON response."
You're actually just benchmarking the mysql driver for each of those languages, not the actual JIT capabilities.
Re:Rust on Computer Language Benchmarks Game
by frik on Thursday February 13, 2014 @05:51PM
(#7235189)
The website design is a bit confusing, you probably missed the other tabs: "JSON serialization", "Single query", "Multiple queries", "Fortunes", "Data updates", "Plaintext". It's a micro benchmark but at least it covers a lot of languages and frameworks. (I saw that benchmark site on HN some months ago)