76% Faster CPython

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • cpython

    The Python programming language (by Pebaz)

  • On the other hand, the code you are actually timing is a hell of a lot more than just that one call to print. Inside the timing code you have:

  • xxHash

    Extremely fast non-cryptographic hash algorithm

  • I chose xxHash as the "faster" hash function to test out since it is a single header file and is easy to compile.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • CPython

    The Python programming language

  • https://github.com/python/cpython/blame/master/Python/pyhash.c#L152

  • hashbrown

    Rust port of Google's SwissTable hash map

  • Google spent literal money paying Matt Kulukundis to improve hash table performance. Now it's literally the built-in hash table for Rust.

  • meow_hash

    Official version of the Meow hash, an extremely fast level 1 hash

  • MeowHash is the fastest non-cryptographic hash available online, and if it were used in CPython, which performs a hash for every fundamental operation in the language, then Python would be much faster.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts