[Solved]-Signalling server performance issue: Python vs NodeJS


NodeJS does its non-blocking I/O at a pretty low level and is backed by V8, which does pretty good JIT optimisations.

Django channels are a higher-level construct, and performance will also heavily depend on the Python implementation. CPython, among other things, interprets bytecode directly and uses a global execution lock.

I would expect NodeJS to perform better than Django on CPython. However, if you prefer Django for other reasons, you may want to compare performance on PyPy, IronPython and Jython.

Leave a comment