3 ms·
>So development time wise, uvloop is much better. Yeah, I definitely get that. I'm just trying to see the smaller picture here. >Cython is a statically typed
by danappelxx 10y ago
>So development time wise, uvloop is much better.
Yeah, I definitely get that. I'm just trying to see the smaller picture here.
>Cython is a statically typed compiled language, it can be anywhere from 2x to 100x faster than Python.
Ah, my bad for not knowing the difference between Cython and CPython. It seems to me, then, that this isn't really a fair comparison to node, is it? Naturally a statically typed language is going to be faster than a dynamic one. Good on you for including a comparison with Go, though.
- Sean1708 10y ago> It seems to me, then, that this isn't really a fair comparison to node, is it? Isn't node written in C?
- danappelxx 10y agoYes, but JavaScript is still a dynamic, garbage collected language.
- 1st1 10y agoMost of nodejs internals are in C++ on top of libuv. Only a thin layer of JS interfaces wrap that. Python is also a dynamic, GCed language. uvloop is built with Cython, which uses the Python object model (and all of its overhead!), and CPython C-API extensively (so it's slower than a pure C program using libuv).
- alexchamberlain 10y agoI think the uvloop package is written in Cython, but the benchmarks just use Python.