3 ms·
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
by hangonhn 13y ago
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.
- wmf 13y agoYes, a very advanced JIT is faster than an interpreter.
- frik 13y agoPython 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&test=update 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.
- RyanZAG 13y agoThat 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.
- frik 13y agoThe 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)