performance

6 Articles

The 7 things you should NOT use threads for in Python (that every programmer should know)

If you have been writing Python for more than 6 months and you still use threads to make your code faster, this article is going to hurt. Threads in Python do not work like they do in Java or C++.

Python: JSON vs Pickle

Which serializer is faster in Python, JSON or Pickle? A small benchmark measuring time and memory with the standard library, UltraJSON and Pickle protocols 4 and 5.

Measuring the performance of Python chunks in different environments

A tiny context manager for timing specific chunks of Python code, and how to switch it on only in development and staging without touching the source.

Redis vs. KeyDB — My Performance Test and Conclusions

KeyDB is a fork of Redis. The KeyDB project claims that the Redis implementation approach is not correct and can be better, in terms of performance.

Performance: Python vs NodeJS, trying to make a fair comparison (I)

Load tests with ab against a minimal NodeJS server on Express and a Python one on asyncio and aiohttp. Requests per second, timings and concurrent clients, with the numbers as they came out.

Python 3 asyncio vs threads vs processes: fetching web pages

First post of a series comparing asyncio, threads and processes in Python 3.4. This one measures how each of them does when downloading a batch of web pages.