CPython reference 3.12.15 · Linux 7.0.0-1020-azure · x86_64 ·

Download results (JSON)

Each version is measured separately: CPython, PyPy and GraalPy all implement the selected Python version.

PyPy for Python 3.12 is a beta release (PyPy 8.0.1). Its results show the state of a release in progress.

Top 50 packages by PyPI downloads

UTC downloads from 2026-10-26 through 2026-11-24 · ClickPy

The ranking counts every PyPI download of each project, whatever its version, file type or platform. Each check installs the pinned release and its dependencies from wheels, imports the named module, then runs a short functional check when the package has one, such as a matrix product for NumPy or an encryption round trip for cryptography. A package without a check shows “Import only”. A missing wheel can belong to the package or a dependency. When a distribution publishes no wheel at all, its sdist is built with no compiler: a pure-Python one, or one whose C speedups are optional, such as PyYAML, then installs and passes; one that needs native code stays a missing wheel. “Other ABI only” means the release has wheels for this Python version and platform, built for another ABI of the interpreter, such as PyPy 7.3 (pp73) instead of PyPy 8 (pp80). “Other Python version only” means the release has wheels for this interpreter and platform, but only for other Python versions, such as PyPy for Python 3.11 (pp311) on PyPy for Python 3.12 (pp312).

RustPython provides no C API, so it is tested only on releases that publish a pure-Python wheel. The others show “Native code, not tested”.

CPython 3.12.15

50 / 50

32 with a functional check · 18 import only

PyPy 8.0.1

41 / 50

25 with a functional check · 16 import only

1 missing wheel · 1 wheel for another ABI only · 2 wheels for another Python version only · 5 packages blocked by a dependency

GraalPy 25.2.4

41 / 50

25 with a functional check · 16 import only

5 missing wheels · 4 packages blocked by a dependency

RustPython 0.6.0a0

36 / 50

Implements Python 3.14.0a0; the reference is 3.12.15. A difference can come from the version.

20 with a functional check · 16 import only

5 packages blocked by a dependency · 9 native packages not tested

Dependencies that block other packages (5)

When pip stops on a dependency, the package is attributed to that dependency rather than counted as incompatible itself.

DependencyPyPyGraalPyRustPython
rpds-pyjsonschema, referencing, jsonschema-specificationsjsonschema, referencing, jsonschema-specificationsjsonschema, referencing, jsonschema-specifications
pydantic-corepydanticpydantic
cfficryptography
MarkupSafejinja2
numpypandas
RankPackage and importPyPI downloadsCPythoncp312PyPypypy312_pp80GraalPygraalpy250_312_nativeRustPythonrustpython313_x86_64_linux_gnu · Python 3.14 · other version
1boto3 1.44.11boto3Import only: no functional check yet2,528,068,267Import onlyImport onlyImport onlyImport only
2packaging 26.4packaging
Functional check
from packaging.specifiers import SpecifierSet
from packaging.version import Version
assert Version("1.10") > Version("1.9")
assert "1.4" in SpecifierSet(">=1.2,<2") and "2.0" not in SpecifierSet(">=1.2,<2")
1,938,124,463PassedPassedPassedPassed
3typing-extensions 4.16.0typing_extensionsImport only: no functional check yet1,834,504,593Import onlyImport onlyImport onlyImport only
4certifi 2026.11.20certifi
Functional check
import certifi
with open(certifi.where(), encoding="ascii") as bundle:
    assert bundle.read().count("BEGIN CERTIFICATE") > 50
1,759,474,898PassedPassedPassedPassed
5idna 3.20idna
Functional check
import idna
assert idna.encode("bücher.example") == b"xn--bcher-kva.example"
assert idna.decode(b"xn--bcher-kva.example") == "bücher.example"
1,735,381,889PassedPassedPassedPassed
6urllib3 2.8.0urllib3
Functional check
from urllib3.util import parse_url
url = parse_url("https://user@host.test:8443/path?q=1")
assert (url.host, url.port, url.path, url.query) == ("host.test", 8443, "/path", "q=1")
1,635,103,842PassedPassedPassedPassed
7charset-normalizer 3.5.3charset_normalizer
Functional check
from charset_normalizer import from_bytes
text = "Les élèves étaient très contents de déjeuner à côté de la forêt."
best = from_bytes(text.encode("utf_8")).best()
assert best is not None and str(best) == text
1,549,274,253PassedPassedPassedPassed
8requests 2.34.2requests
Functional check
import requests
prepared = requests.Request("GET", "https://example.test/a", params={"q": "x y"}).prepare()
assert prepared.url == "https://example.test/a?q=x+y"
1,523,324,194PassedPassedPassedPassed
9cryptography 50.0.2cryptography.hazmat.bindings._rust
Functional check
from cryptography.fernet import Fernet
from cryptography.hazmat.primitives import hashes
key = Fernet.generate_key()
assert Fernet(key).decrypt(Fernet(key).encrypt(b"conformity")) == b"conformity"
digest = hashes.Hash(hashes.SHA256())
digest.update(b"abc")
assert digest.finalize().hex() == "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
1,393,642,902Passed
Other Python version only
Wheels published for pp311 only. This interpreter is pp312.
Blocked by a dependency
cffi 2.1.1 publishes no wheel for this interpreter.

ERROR: Failed to build 'cryptography' when installing build dependencies for cryptography
via cffi
Native code, not tested
The release publishes no pure-Python wheel.
10pluggy 1.7.0pluggyImport only: no functional check yet1,340,941,898Import onlyImport onlyImport onlyImport only
11pyyaml 6.0.4yaml
Functional check
import yaml
loader = getattr(yaml, "CSafeLoader", yaml.SafeLoader)
assert yaml.load("a: [1, 2]\nb: {c: true}", Loader=loader) == {"a": [1, 2], "b": {"c": True}}
assert yaml.safe_dump({"x": [1, "y"]}) == "x:\n- 1\n- y\n"
1,315,730,476Passed
Passed
Built from the pure-Python sdist, no wheel for this interpreter: pyyaml.
Passed
Built from the pure-Python sdist, no wheel for this interpreter: pyyaml.
Native code, not tested
The release publishes no pure-Python wheel.
12cffi 2.1.1cffi
Functional check
import cffi
ffi = cffi.FFI()
numbers = ffi.new("int[]", [1, 2, 3])
assert sum(numbers) == 6
assert ffi.sizeof("int32_t") == 4
assert ffi.string(ffi.new("char[]", b"conformity")) == b"conformity"
1,303,503,069Passed
Passed
Built from the pure-Python sdist, no wheel for this interpreter: cffi. The interpreter ships its own cffi 2.1.0: this release installs only its metadata.
No wheel
ERROR: No matching distribution found for cffi==2.1.1
Its sdist does not build without a compiler.
Native code, not tested
The release publishes no pure-Python wheel.
13python-dateutil 4.0.0dateutil
Functional check
from datetime import date
from dateutil.relativedelta import relativedelta
assert date(2024, 1, 31) + relativedelta(months=1) == date(2024, 2, 29)
1,262,006,061PassedPassedPassedPassed
14pycparser 3.12pycparser
Functional check
from pycparser import c_parser
tree = c_parser.CParser().parse("int add(int a, int b) { return a + b; }")
assert tree.ext[0].decl.name == "add"
1,236,450,446PassedPassedPassedPassed
15pygments 2.21.0pygments
Functional check
from pygments import highlight
from pygments.formatters import HtmlFormatter
from pygments.lexers import PythonLexer
assert '<span class="k">def</span>' in highlight("def f(): pass", PythonLexer(), HtmlFormatter())
1,213,951,140PassedPassedPassedPassed
16pydantic 2.14.4pydantic
Functional check
from pydantic import BaseModel, ValidationError

class Item(BaseModel):
    name: str
    count: int

assert Item(name="a", count="3").count == 3
try:
    Item(name="a", count="three")
except ValidationError as error:
    assert error.errors()[0]["loc"] == ("count",)
else:
    raise AssertionError("invalid input accepted")
1,206,619,267Passed
Blocked by a dependency
pydantic-core 2.50.5 publishes wheels for pp311 only.

ERROR: Could not find a version that satisfies the requirement pydantic-core==2.50.5 (from pydantic) (from versions: 0.0.1)
ERROR: No matching distribution found for pydantic-core==2.50.5
via pydantic-core
Passed
Blocked by a dependency
pydantic-core 2.50.5 publishes no wheel for this interpreter.

ERROR: Could not find a version that satisfies the requirement pydantic-core==2.50.5 (from pydantic) (from versions: 0.0.1)
ERROR: No matching distribution found for pydantic-core==2.50.5
Its sdist does not build without a compiler.
via pydantic-core
17pydantic-core 2.50.5pydantic_core
Functional check
from pydantic_core import SchemaValidator, ValidationError, core_schema
validator = SchemaValidator(core_schema.int_schema())
assert validator.validate_python("5") == 5
try:
    validator.validate_python("five")
except ValidationError:
    pass
else:
    raise AssertionError("invalid input accepted")
1,186,040,480Passed
Other Python version only
Wheels published for pp311 only. This interpreter is pp312.
Passed
Native code, not tested
The release publishes no pure-Python wheel.
18click 8.5.1click
Functional check
import click
from click.testing import CliRunner

@click.command()
@click.option("--count", type=int)
def double(count):
    click.echo(count * 2)

assert CliRunner().invoke(double, ["--count", "21"]).output == "42\n"
1,157,577,801PassedPassedPassedPassed
19numpy 2.5.5numpy
Functional check
import numpy as np
matrix = np.arange(6, dtype=np.float64).reshape(2, 3)
assert (matrix @ matrix.T).tolist() == [[5.0, 14.0], [14.0, 50.0]]
assert np.linalg.solve([[3.0, 1.0], [1.0, 2.0]], [9.0, 8.0]).round(9).tolist() == [2.0, 3.0]
1,151,605,481Passed
No wheel
ERROR: No matching distribution found for numpy==2.5.5
Its sdist does not build without a compiler.
No wheel
ERROR: No matching distribution found for numpy==2.5.5
Its sdist does not build without a compiler.
Native code, not tested
The release publishes no pure-Python wheel.
20setuptools 84.2.1setuptoolsImport only: no functional check yet1,138,641,715Import onlyImport onlyImport onlyImport only
21anyio 4.16.0anyio
Functional check
import anyio

async def main():
    await anyio.sleep(0)
    return 7

assert anyio.run(main) == 7
1,095,061,600PassedPassedPassedPassed
22annotated-types 0.8.0annotated_typesImport only: no functional check yet1,048,672,747Import onlyImport onlyImport onlyImport only
23typing-inspection 0.4.5typing_inspectionImport only: no functional check yet1,047,971,317Import onlyImport onlyImport onlyImport only
24botocore 1.44.11botocoreImport only: no functional check yet1,047,131,080Import onlyImport onlyImport onlyImport only
25six 1.17.0sixImport only: no functional check yet1,040,276,068Import onlyImport onlyImport onlyImport only
26pytest 9.2.0pytestImport only: no functional check yet1,011,058,238Import onlyImport onlyImport onlyImport only
27h11 0.16.0h11
Functional check
import h11
connection = h11.Connection(h11.CLIENT)
data = connection.send(h11.Request(method="GET", target="/", headers=[("Host", "example.test")]))
assert data.startswith(b"GET / HTTP/1.1\r\n")
1,006,638,992PassedPassedPassedPassed
28iniconfig 2.3.1iniconfigImport only: no functional check yet986,257,188Import onlyImport onlyImport onlyImport only
29attrs 26.1.0attrs
Functional check
import attrs

@attrs.define
class Point:
    x: int
    y: int = 0

assert Point(1) == Point(1, 0) and attrs.asdict(Point(2, 3)) == {"x": 2, "y": 3}
935,156,011PassedPassedPassedPassed
30markupsafe 3.0.4markupsafe
Functional check
from markupsafe import Markup, escape
assert str(escape("<a href='x'>&</a>")) == "&lt;a href=&#39;x&#39;&gt;&amp;&lt;/a&gt;"
assert str(Markup("<b>%s</b>") % "<i>") == "<b>&lt;i&gt;</b>"
875,779,134Passed
Passed
Built from the pure-Python sdist, no wheel for this interpreter: markupsafe.
Passed
Native code, not tested
The release publishes no pure-Python wheel.
31httpx 0.28.1httpx
Functional check
import httpx
transport = httpx.MockTransport(lambda request: httpx.Response(200, json={"path": request.url.path}))
with httpx.Client(transport=transport) as client:
    assert client.get("https://example.test/x").json() == {"path": "/x"}
831,004,792PassedPassedPassedPassed
32httpcore 1.0.9httpcoreImport only: no functional check yet827,634,033Import onlyImport onlyImport onlyImport only
33protobuf 7.36.2google.protobuf
Functional check
from google.protobuf import struct_pb2
message = struct_pb2.Struct()
message.update({"name": "conformity", "ratio": 1.5})
again = struct_pb2.Struct.FromString(message.SerializeToString())
assert again["name"] == "conformity" and again["ratio"] == 1.5
801,983,647PassedPassedPassedPassed
34pyjwt 2.15.1jwt
Functional check
import jwt
secret = "a-secret-key-long-enough-for-hs256!!"
token = jwt.encode({"sub": "conformity"}, secret, algorithm="HS256")
assert jwt.decode(token, secret, algorithms=["HS256"]) == {"sub": "conformity"}
776,743,895PassedPassedPassedPassed
35python-dotenv 1.2.4dotenv
Functional check
from io import StringIO
from dotenv import dotenv_values
assert dotenv_values(stream=StringIO("A=1\nB='x y'\n")) == {"A": "1", "B": "x y"}
772,634,784PassedPassedPassedPassed
36tzdata 2026.6tzdata
Functional check
from importlib.resources import files
assert (files("tzdata") / "zoneinfo" / "Europe" / "Paris").read_bytes().startswith(b"TZif")
764,257,164PassedPassedPassedPassed
37s3transfer 0.19.3s3transferImport only: no functional check yet760,523,487Import onlyImport onlyImport onlyImport only
38opentelemetry-api 1.45.2opentelemetry.traceImport only: no functional check yet742,195,252Import onlyImport onlyImport onlyImport only
39jinja2 3.1.6jinja2
Functional check
from jinja2 import Environment
template = Environment(autoescape=True).from_string("{% for x in items %}{{ x }};{% endfor %}")
assert template.render(items=["<b>", 2]) == "&lt;b&gt;;2;"
730,547,904Passed
Passed
Built from the pure-Python sdist, no wheel for this interpreter: MarkupSafe.
Passed
Blocked by a dependency
MarkupSafe 3.0.4 publishes no wheel for this interpreter.

ERROR: Could not find a version that satisfies the requirement MarkupSafe>=2.0 (from jinja2) (from versions: none)
ERROR: No matching distribution found for MarkupSafe>=2.0
Its sdist does not build without a compiler.
via MarkupSafe
40starlette 1.10.0starletteImport only: no functional check yet725,066,633Import onlyImport onlyImport onlyImport only
41pillow 13.0.0PIL.Image
Functional check
from io import BytesIO
from PIL import Image
image = Image.new("RGB", (4, 3), (255, 0, 0))
buffer = BytesIO()
image.save(buffer, "PNG")
again = Image.open(BytesIO(buffer.getvalue()))
assert again.size == (4, 3)
assert again.convert("RGB").getpixel((1, 1)) == (255, 0, 0)
724,986,905PassedPassed
No wheel
ERROR: No matching distribution found for pillow==13.0.0
Its sdist does not build without a compiler.
Native code, not tested
The release publishes no pure-Python wheel.
42pandas 3.1.1pandas
Functional check
import pandas as pd
frame = pd.DataFrame({"team": ["a", "b", "a"], "score": [1, 2, 3]})
assert frame.groupby("team")["score"].sum().to_dict() == {"a": 4, "b": 2}
assert frame.sort_values("score", ascending=False)["team"].tolist() == ["a", "b", "a"]
723,801,756Passed
Blocked by a dependency
numpy 2.5.5 publishes no wheel for this interpreter.

ERROR: Failed to build 'pandas' when installing build dependencies for pandas
via numpy
No wheel
ERROR: No matching distribution found for pandas==3.1.1
Its sdist does not build without a compiler.
Native code, not tested
The release publishes no pure-Python wheel.
43uvicorn 0.54.0uvicornImport only: no functional check yet694,809,014Import onlyImport onlyImport onlyImport only
44rpds-py 2026.9.1rpds
Functional check
from rpds import HashTrieMap, List
mapping = HashTrieMap({"a": 1}).insert("b", 2)
assert mapping["b"] == 2 and len(mapping) == 2 and "b" not in HashTrieMap({"a": 1})
assert list(List([1, 2]).push_front(0)) == [0, 1, 2]
687,808,420Passed
Other ABI only
Wheels published for pypy312_pp73. This interpreter requires pypy312_pp80.
No wheel
ERROR: No matching distribution found for rpds-py==2026.9.1
Its sdist does not build without a compiler.
Native code, not tested
The release publishes no pure-Python wheel.
45jsonschema 4.26.0jsonschema
Functional check
import jsonschema
schema = {"type": "object", "properties": {"count": {"type": "integer"}}, "required": ["count"]}
jsonschema.validate({"count": 1}, schema)
try:
    jsonschema.validate({"count": "one"}, schema)
except jsonschema.ValidationError:
    pass
else:
    raise AssertionError("invalid document accepted")
676,944,993Passed
Blocked by a dependency
rpds-py 2026.9.1 publishes wheels for pypy312_pp73 only.

ERROR: Could not find a version that satisfies the requirement rpds-py>=0.25.0 (from jsonschema) (from versions: none)
ERROR: No matching distribution found for rpds-py>=0.25.0
via rpds-py
Blocked by a dependency
rpds-py 2026.9.1 publishes no wheel for this interpreter.

ERROR: Could not find a version that satisfies the requirement rpds-py>=0.25.0 (from jsonschema) (from versions: none)
ERROR: No matching distribution found for rpds-py>=0.25.0
Its sdist does not build without a compiler.
via rpds-py
Blocked by a dependency
rpds-py 2026.9.1 publishes no wheel for this interpreter.

ERROR: Could not find a version that satisfies the requirement rpds-py>=0.25.0 (from jsonschema) (from versions: none)
ERROR: No matching distribution found for rpds-py>=0.25.0
Its sdist does not build without a compiler.
via rpds-py
46platformdirs 4.14.8platformdirsImport only: no functional check yet675,007,506Import onlyImport onlyImport onlyImport only
47pathspec 1.1.1pathspec
Functional check
import pathspec
spec = pathspec.PathSpec.from_lines("gitwildmatch", ["*.py", "!keep.py"])
assert spec.match_file("a/b.py") and not spec.match_file("keep.py") and not spec.match_file("a.txt")
652,406,147PassedPassedPassedPassed
48referencing 0.37.0referencingImport only: no functional check yet646,704,055Import only
Blocked by a dependency
rpds-py 2026.9.1 publishes wheels for pypy312_pp73 only.

ERROR: Could not find a version that satisfies the requirement rpds-py>=0.7.0 (from referencing) (from versions: none)
ERROR: No matching distribution found for rpds-py>=0.7.0
via rpds-py
Blocked by a dependency
rpds-py 2026.9.1 publishes no wheel for this interpreter.

ERROR: Could not find a version that satisfies the requirement rpds-py>=0.7.0 (from referencing) (from versions: none)
ERROR: No matching distribution found for rpds-py>=0.7.0
Its sdist does not build without a compiler.
via rpds-py
Blocked by a dependency
rpds-py 2026.9.1 publishes no wheel for this interpreter.

ERROR: Could not find a version that satisfies the requirement rpds-py>=0.7.0 (from referencing) (from versions: none)
ERROR: No matching distribution found for rpds-py>=0.7.0
Its sdist does not build without a compiler.
via rpds-py
49jsonschema-specifications 2025.9.1jsonschema_specificationsImport only: no functional check yet643,129,928Import only
Blocked by a dependency
rpds-py 2026.9.1 publishes wheels for pypy312_pp73 only.

ERROR: Cannot install jsonschema-specifications because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
    referencing 0.37.0 depends on rpds-py>=0.7.0
    referencing 0.36.2 depends on rpds-py>=0.7.0
    referencing 0.36.1 depends on rpds-py>=0.7.0
    referencing 0.36.0 depends on rpds-py>=0.7.0
    referencing 0.35.1 depends on rpds-py>=0.7.0
    referencing 0.35.0 depends on rpds-py>=0.7.0
    referencing 0.34.0 depends on rpds-py>=0.7.0
    referencing 0.33.0 depends on rpds-py>=0.7.0
    referencing 0.32.1 depends on rpds-py>=0.7.0
    referencing 0.32.0 depends on rpds-py>=0.7.0
    referencing 0.31.1 depends on rpds-py>=0.7.0
    referencing 0.31.0 depends on rpds-py>=0.7.0
via rpds-py
Blocked by a dependency
rpds-py 2026.9.1 publishes no wheel for this interpreter.

ERROR: Cannot install jsonschema-specifications because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
    referencing 0.37.0 depends on rpds-py>=0.7.0
    referencing 0.36.2 depends on rpds-py>=0.7.0
    referencing 0.36.1 depends on rpds-py>=0.7.0
    referencing 0.36.0 depends on rpds-py>=0.7.0
    referencing 0.35.1 depends on rpds-py>=0.7.0
    referencing 0.35.0 depends on rpds-py>=0.7.0
    referencing 0.34.0 depends on rpds-py>=0.7.0
    referencing 0.33.0 depends on rpds-py>=0.7.0
    referencing 0.32.1 depends on rpds-py>=0.7.0
    referencing 0.32.0 depends on rpds-py>=0.7.0
    referencing 0.31.1 depends on rpds-py>=0.7.0
    referencing 0.31.0 depends on rpds-py>=0.7.0
Its sdist does not build without a compiler.
via rpds-py
Blocked by a dependency
rpds-py 2026.9.1 publishes no wheel for this interpreter.

ERROR: Cannot install jsonschema-specifications because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
    referencing 0.37.0 depends on rpds-py>=0.7.0
    referencing 0.36.2 depends on rpds-py>=0.7.0
    referencing 0.36.1 depends on rpds-py>=0.7.0
    referencing 0.36.0 depends on rpds-py>=0.7.0
    referencing 0.35.1 depends on rpds-py>=0.7.0
    referencing 0.35.0 depends on rpds-py>=0.7.0
    referencing 0.34.0 depends on rpds-py>=0.7.0
    referencing 0.33.0 depends on rpds-py>=0.7.0
    referencing 0.32.1 depends on rpds-py>=0.7.0
    referencing 0.32.0 depends on rpds-py>=0.7.0
    referencing 0.31.1 depends on rpds-py>=0.7.0
    referencing 0.31.0 depends on rpds-py>=0.7.0
Its sdist does not build without a compiler.
via rpds-py
50filelock 4.3.1filelock
Functional check
import os
import tempfile
from filelock import FileLock
path = os.path.join(tempfile.mkdtemp(), "conformity.lock")
with FileLock(path) as lock:
    assert lock.is_locked
assert not lock.is_locked
635,569,166PassedPassedPassedPassed

Applications

Small scenarios with pinned releases of Django, Bottle and NumPy, run on each interpreter from isolated wheel directories.

CPython 3.12.15

4 / 4

PyPy 8.0.1

3 / 4

1 missing wheel

GraalPy 25.2.4

3 / 4

1 missing wheel

RustPython 0.6.0a0

2 / 4

Implements Python 3.14.0a0; the reference is 3.12.15. A difference can come from the version.

1 missing wheel · 1 test error

ScenarioCPythonPyPyGraalPyRustPythonPython 3.14 · other version
Django 5.2.19Render a template with autoescaping
Code
def django_template():
    from django.conf import settings
    from django.template import Context, Engine

    settings.configure(USE_I18N=False)
    template = Engine().from_string("{% for item in items %}{{ item }}{% if not forloop.last %}, {% endif %}{% endfor %}")
    rendered = template.render(Context({"items": ["<draft>", "ready"]}))
    assert rendered == "&lt;draft&gt;, ready", rendered
PassedPassedPassedPassed
Django 5.2.19Aggregate rows after a rolled-back SQLite transaction
Code
def django_sqlite():
    import django
    from django.conf import settings

    settings.configure(
        DATABASES={"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}},
        INSTALLED_APPS=[],
        USE_TZ=True,
    )
    django.setup()
    from django.db import connection, models, transaction

    class Item(models.Model):
        label = models.CharField(max_length=20)
        quantity = models.IntegerField()

        class Meta:
            app_label = "dashboard_checks"

    with connection.schema_editor() as schema:
        schema.create_model(Item)
    Item.objects.bulk_create([Item(label="red", quantity=3), Item(label="blue", quantity=4)])
    with transaction.atomic():
        Item.objects.create(label="draft", quantity=50)
        transaction.set_rollback(True)
    observed = Item.objects.filter(quantity__gte=3).aggregate(total=models.Sum("quantity"))
    assert observed == {"total": 7}, observed
PassedPassedPassed
Test error
    ~~~~~~~~~~~~^^
  File "<wheels>/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "<wheels>/django/db/backends/base/base.py", line 256, in connect
    self.connection = self.get_new_connection(conn_params)
                      ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "<wheels>/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "<wheels>/django/db/backends/sqlite3/base.py", line 207, in get_new_connection
    register_functions(conn)
    ~~~~~~~~~~~~~~~~~~^^^^^^
  File "<wheels>/django/db/backends/sqlite3/_functions.py", line 85, in register
    if not connection.execute(sql).fetchone()[0]:
           ~~~~~~~~~~~~~~~~~~^^^^^
MemoryError: string pointer is null
Bottle 0.13.4Route a WSGI request to a JSON handler
Code
def bottle_route():
    from wsgiref.util import setup_testing_defaults

    from bottle import Bottle, request

    app = Bottle()

    @app.get("/items/<identifier:int>")
    def item(identifier):
        return {"id": identifier, "preview": request.query.preview == "yes"}

    environ = {}
    setup_testing_defaults(environ)
    environ.update(PATH_INFO="/items/42", QUERY_STRING="preview=yes")

    def check_headers(status, headers, exc_info=None):
        assert status.startswith("200 "), status
        assert dict(headers)["Content-Type"].startswith("application/json"), headers

    payload = b"".join(app(environ, check_headers))
    assert json.loads(payload) == {"id": 42, "preview": True}, payload
PassedPassedPassedPassed
NumPy 2.4.4Slice arrays and solve a linear system
Code
def numpy_array():
    import os

    os.environ["OPENBLAS_NUM_THREADS"] = "1"
    import numpy as np

    source = np.arange(12, dtype=np.int64).reshape(3, 4)
    assert (source[:, ::-2] + [1, 2]).sum(axis=0).tolist() == [24, 21]
    coefficients = np.array([[3.0, 1.0], [1.0, 2.0]])
    solution = np.linalg.solve(coefficients, [7.0, 4.0])
    assert np.allclose(solution, [2.0, 1.0], rtol=1e-12, atol=1e-12), solution
PassedNo wheelNo wheelNo wheel

Shared cases

Each interpreter runs the same calls. Values and exceptions are compared with the CPython reference.

Each case says what guarantees its expected result. A difference on documented behavior is a conformity gap. A difference on CPython behavior is not necessarily a bug.

CPython 3.12.15

76 / 76

PyPy 8.0.1

75 / 76

1 difference

GraalPy 25.2.4

73 / 76

2 differences · 1 internal interpreter error

RustPython 0.6.0a0

76 / 76

Implements Python 3.14.0a0; the reference is 3.12.15. A difference can come from the version.

CaseCPythonPyPyGraalPyRustPythonPython 3.14 · other version
json.loadsDecode an empty object
import json

json.loads('{}')

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns {} (dict)

PyPy

Returns {} (dict)

GraalPy

Returns {} (dict)

RustPython

Returns {} (dict)
PassedPassedPassedPassed
json.loadsAllow whitespace around separators
import json

json.loads('{  "reponse"  :  42  }')

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns {'reponse': 42} (dict)

PyPy

Returns {'reponse': 42} (dict)

GraalPy

Returns {'reponse': 42} (dict)

RustPython

Returns {'reponse': 42} (dict)
PassedPassedPassedPassed
json.loadsReject extra data after a value
import json

json.loads('[1, 2]3')

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Raises json.JSONDecodeError

PyPy

Raises json.JSONDecodeError

GraalPy

Raises json.JSONDecodeError

RustPython

Raises json.JSONDecodeError
PassedPassedPassedPassed
json.loadsDecode a character outside the Basic Multilingual Plane
import json

ord(json.loads('\"\\ud83d\\ude80\"'))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns 128640 (int)

PyPy

Returns 128640 (int)

GraalPy

Returns 128640 (int)

RustPython

Returns 128640 (int)
PassedPassedPassedPassed
json.loadsConvert integers with parse_int
import json

json.loads('7', parse_int=float)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns 7.0 (float)

PyPy

Returns 7.0 (float)

GraalPy

Returns 7.0 (float)

RustPython

Returns 7.0 (float)
PassedPassedPassedPassed
json.dumpsCustomize output separators
import json

json.dumps({'a': [1, 2]}, separators=(',', ':'))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns '{"a":[1,2]}' (str)

PyPy

Returns '{"a":[1,2]}' (str)

GraalPy

Returns '{"a":[1,2]}' (str)

RustPython

Returns '{"a":[1,2]}' (str)
PassedPassedPassedPassed
struct.packPack a big-endian integer
import struct

struct.pack('>H', 0x1234)

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns b'\x124' (bytes)

PyPy

Returns b'\x124' (bytes)

GraalPy

Returns b'\x124' (bytes)

RustPython

Returns b'\x124' (bytes)
PassedPassedPassedPassed
struct.unpackUnpack a signed little-endian integer
import struct

struct.unpack('<h', b'\xfe\xff')

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns (-2,) (tuple)

PyPy

Returns (-2,) (tuple)

GraalPy

Returns (-2,) (tuple)

RustPython

Returns (-2,) (tuple)
PassedPassedPassedPassed
struct.calcsizeCount padding bytes
import struct

struct.calcsize('>B3xH')

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns 6 (int)

PyPy

Returns 6 (int)

GraalPy

Returns 6 (int)

RustPython

Returns 6 (int)
PassedPassedPassedPassed
struct.unpack_fromRead from an offset
import struct

struct.unpack_from('>H', b'x\x01\x02', 1)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (258,) (tuple)

PyPy

Returns (258,) (tuple)

GraalPy

Returns (258,) (tuple)

RustPython

Returns (258,) (tuple)
PassedPassedPassedPassed
struct.calcsizeReject an unknown format
import struct

struct.calcsize('Z')

Contract: Not yet classified

Upstream CPython test that checks the same behavior

CPython

Raises struct.error

PyPy

Raises struct.error

GraalPy

Raises struct.error

RustPython

Raises struct.error
PassedPassedPassedPassed
struct.iter_unpackUnpack multiple records
import struct

list(struct.iter_unpack('>H', b'\x00\x01\x00\x02'))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns [(1,), (2,)] (list)

PyPy

Returns [(1,), (2,)] (list)

GraalPy

Returns [(1,), (2,)] (list)

RustPython

Returns [(1,), (2,)] (list)
PassedPassedPassedPassed
binascii.hexlifyEncode bytes as hexadecimal
import binascii

binascii.hexlify(b'\x00\xff')

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns b'00ff' (bytes)

PyPy

Returns b'00ff' (bytes)

GraalPy

Returns b'00ff' (bytes)

RustPython

Returns b'00ff' (bytes)
PassedPassedPassedPassed
binascii.unhexlifyDecode mixed-case hexadecimal
import binascii

binascii.unhexlify('00Ff')

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns b'\x00\xff' (bytes)

PyPy

Returns b'\x00\xff' (bytes)

GraalPy

Returns b'\x00\xff' (bytes)

RustPython

Returns b'\x00\xff' (bytes)
PassedPassedPassedPassed
binascii.unhexlifyReject a single hex digit
import binascii

binascii.unhexlify('a')

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Raises binascii.Error

PyPy

Raises binascii.Error

GraalPy

Raises binascii.Error

RustPython

Raises binascii.Error
PassedPassedPassedPassed
binascii.a2b_base64Decode padded Base64
import binascii

binascii.a2b_base64(b'YWI=')

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns b'ab' (bytes)

PyPy

Returns b'ab' (bytes)

GraalPy

Returns b'ab' (bytes)

RustPython

Returns b'ab' (bytes)
PassedPassedPassedPassed
binascii.b2a_base64Omit the Base64 trailing newline
import binascii

binascii.b2a_base64(b'ab', newline=False)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns b'YWI=' (bytes)

PyPy

Returns b'YWI=' (bytes)

GraalPy

Returns b'YWI=' (bytes)

RustPython

Returns b'YWI=' (bytes)
PassedPassedPassedPassed
binascii.crc32Compute an unsigned CRC-32
import binascii

binascii.crc32(b'123456789')

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns 3421780262 (int)

PyPy

Returns 3421780262 (int)

GraalPy

Returns 3421780262 (int)

RustPython

Returns 3421780262 (int)
PassedPassedPassedPassed
binascii.crc_hqxCompute CRC-16 with an initial value
import binascii

binascii.crc_hqx(b'123456789', 0xffff)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns 10673 (int)

PyPy

Returns 10673 (int)

GraalPy

Returns 10673 (int)

RustPython

Returns 10673 (int)
PassedPassedPassedPassed
math.sqrtCompute an exact square root
import math

math.sqrt(81)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns 9.0 (float)

PyPy

Returns 9.0 (float)

GraalPy

Returns 9.0 (float)

RustPython

Returns 9.0 (float)
PassedPassedPassedPassed
math.sqrtReject a negative argument to square root
import math

math.sqrt(-1)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Raises ValueError

PyPy

Raises ValueError

GraalPy

Raises ValueError

RustPython

Raises ValueError
PassedPassedPassedPassed
math.floorRound a negative number down
import math

math.floor(-1.25)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns -2 (int)

PyPy

Returns -2 (int)

GraalPy

Returns -2 (int)

RustPython

Returns -2 (int)
PassedPassedPassedPassed
math.isnanIdentify a NaN
import math

math.isnan(float('nan'))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns True (bool)

PyPy

Returns True (bool)

GraalPy

Returns True (bool)

RustPython

Returns True (bool)
PassedPassedPassedPassed
math.iscloseUse absolute tolerance near zero
import math

math.isclose(0.0, 1e-10, abs_tol=1e-9)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns True (bool)

PyPy

Returns True (bool)

GraalPy

Returns True (bool)

RustPython

Returns True (bool)
PassedPassedPassedPassed
math.gcdCompute the GCD with a negative argument
import math

math.gcd(-18, 24)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns 6 (int)

PyPy

Returns 6 (int)

GraalPy

Returns 6 (int)

RustPython

Returns 6 (int)
PassedPassedPassedPassed
re.fullmatchDo not backtrack into an atomic group
import re

re.fullmatch('(?>ab|a)b', 'ab') is None

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns True (bool)

PyPy

Returns True (bool)

GraalPy

Returns True (bool)

RustPython

Returns True (bool)
PassedPassedPassedPassed
re.fullmatchDo not give characters back after a possessive quantifier
import re

re.fullmatch('a*+a', 'aaa') is None

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns True (bool)

PyPy

Returns True (bool)

GraalPy

Returns True (bool)

RustPython

Returns True (bool)
PassedPassedPassedPassed
re.fullmatchApply Unicode case folding to character ranges
import re

re.fullmatch('[A-Z]', 'K', re.IGNORECASE) is not None

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns True (bool)

PyPy

Returns True (bool)

GraalPy

Returns True (bool)

RustPython

Returns True (bool)
PassedPassedPassedPassed
re.fullmatchRestrict case folding with the ASCII flag
import re

re.fullmatch('[A-Z]', 'K', re.IGNORECASE | re.ASCII) is None

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns True (bool)

PyPy

Returns True (bool)

GraalPy

Returns True (bool)

RustPython

Returns True (bool)
PassedPassedPassedPassed
re.fullmatchUse a named group in a conditional branch
import re

re.fullmatch('(?P<quote><)?x(?(quote)>|!)', '<x>').groupdict()

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns {'quote': '<'} (dict)

PyPy

Returns {'quote': '<'} (dict)

GraalPy

Returns {'quote': '<'} (dict)

RustPython

Returns {'quote': '<'} (dict)
PassedPassedPassedPassed
re.compileReject a variable-width lookbehind
import re

re.compile('(?<=a+)b')

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Raises re.error

PyPy

Raises re.error

GraalPy

Raises re.error

RustPython

Raises re.error
PassedPassedPassedPassed
decimal.Decimal.quantizeRound ties to even digits
import decimal

(str(decimal.Decimal.quantize(decimal.Decimal('2.5'), decimal.Decimal('1'), rounding=decimal.ROUND_HALF_EVEN)), str(decimal.Decimal.quantize(decimal.Decimal('3.5'), decimal.Decimal('1'), rounding=decimal.ROUND_HALF_EVEN)))

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns ('2', '4') (tuple)

PyPy

Returns ('2', '4') (tuple)

GraalPy

Returns ('2', '4') (tuple)

RustPython

Returns ('2', '4') (tuple)
PassedPassedPassedPassed
decimal.localcontextRestore precision after leaving a local context
import decimal

original = decimal.getcontext().prec
with decimal.localcontext(prec=3):
    inside = str(decimal.Decimal(1) / decimal.Decimal(3))
(inside, decimal.getcontext().prec == original)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns ('0.333', True) (tuple)

PyPy

Returns ('0.333', True) (tuple)

GraalPy

Returns ('0.333', True) (tuple)

RustPython

Returns ('0.333', True) (tuple)
PassedPassedPassedPassed
decimal.Context.divideRaise an exception for a trapped inexact result
import decimal

context = decimal.Context(prec=3)
context.traps[decimal.Inexact] = True
decimal.Context.divide(context, decimal.Decimal(1), decimal.Decimal(3))

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Raises decimal.Inexact

PyPy

Raises decimal.Inexact

GraalPy

Raises decimal.Inexact

RustPython

Raises decimal.Inexact
PassedPassedPassedPassed
decimal.Context.divideSet flags when division rounds the result
import decimal

context = decimal.Context(prec=3)
quotient = decimal.Context.divide(context, decimal.Decimal(1), decimal.Decimal(3))
(str(quotient), bool(context.flags[decimal.Inexact]), bool(context.flags[decimal.Rounded]))

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns ('0.333', True, True) (tuple)

PyPy

Returns ('0.333', True, True) (tuple)

GraalPy

Returns ('0.333', True, True) (tuple)

RustPython

Returns ('0.333', True, True) (tuple)
PassedPassedPassedPassed
zlib.decompressobjDetect an incomplete stream until the trailer arrives
import zlib

original = b'python' * 16
encoded = zlib.compress(original)
decoder = zlib.decompressobj()
decoded = decoder.decompress(encoded[:-2])
before = decoder.eof
decoded += decoder.decompress(encoded[-2:])
(before, decoder.eof, decoded == original)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (False, True, True) (tuple)

PyPy

Returns (False, True, True) (tuple)

GraalPy

Returns (False, True, True) (tuple)

RustPython

Returns (False, True, True) (tuple)
PassedPassedPassedPassed
zlib.decompressobjPreserve bytes after a compressed stream
import zlib

decoder = zlib.decompressobj()
(decoder.decompress(zlib.compress(b'payload') + b'next'), decoder.unused_data)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (b'payload', b'next') (tuple)

PyPy

Returns (b'payload', b'next') (tuple)

GraalPy

Returns (b'payload', b'next') (tuple)

RustPython

Returns (b'payload', b'next') (tuple)
PassedPassedPassedPassed
zlib.decompressobjResume decoding after an output limit
import zlib

decoder = zlib.decompressobj()
first = decoder.decompress(zlib.compress(b'ab' * 100), max_length=5)
tail = decoder.unconsumed_tail
had_tail = bool(tail)
rest = decoder.decompress(tail)
(first, had_tail, len(rest), decoder.eof)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (b'ababa', True, 195, True) (tuple)

PyPy

Returns (b'ababa', True, 195, True) (tuple)

GraalPy

Returns (b'ababa', True, 195, True) (tuple)

RustPython

Returns (b'ababa', True, 195, True) (tuple)
PassedPassedPassedPassed
zlib.compressobjDecode a stream made with a preset dictionary
import zlib

dictionary = b'common prefix: red and blue and green'
encoder = zlib.compressobj(zdict=dictionary)
encoded = encoder.compress(b'common prefix: blue') + encoder.flush()
decoder = zlib.decompressobj(zdict=dictionary)
(decoder.decompress(encoded), decoder.eof)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (b'common prefix: blue', True) (tuple)

PyPy

Returns (b'common prefix: blue', True) (tuple)

GraalPy

Returns (b'common prefix: blue', True) (tuple)

RustPython

Returns (b'common prefix: blue', True) (tuple)
PassedPassedPassedPassed
zlib.compressSelect a gzip wrapper using the window parameter
import zlib

encoded = zlib.compress(b'output', wbits=31)
(encoded[:2], zlib.decompress(encoded, wbits=31))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (b'\x1f\x8b', b'output') (tuple)

PyPy

Returns (b'\x1f\x8b', b'output') (tuple)

GraalPy

Returns (b'\x1f\x8b', b'output') (tuple)

RustPython

Returns (b'\x1f\x8b', b'output') (tuple)
PassedPassedPassedPassed
sqlite3.connectRoll back an insert after a commit
import sqlite3

connection = sqlite3.connect(':memory:')
connection.execute('create table example (value integer)')
connection.execute('insert into example values (?)', (1,))
connection.commit()
connection.execute('insert into example values (?)', (2,))
inside = connection.in_transaction
connection.rollback()
rows = connection.execute('select value from example').fetchall()
(inside, connection.in_transaction, rows)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (True, False, [(1,)]) (tuple)

PyPy

Returns (True, False, [(1,)]) (tuple)

GraalPy

Returns (True, False, [(1,)]) (tuple)

RustPython

Returns (True, False, [(1,)]) (tuple)
PassedPassedPassedPassed
sqlite3.Connection.executeBind named parameters with SQL punctuation in the value
import sqlite3

connection = sqlite3.connect(':memory:')
sqlite3.Connection.execute(connection, 'select :item, :count', {'item': "it's here", 'count': 7}).fetchone()

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns ("it's here", 7) (tuple)

PyPy

Returns ("it's here", 7) (tuple)

GraalPy

Returns ("it's here", 7) (tuple)

RustPython

Returns ("it's here", 7) (tuple)
PassedPassedPassedPassed
sqlite3.RowLook up result column names without matching case
import sqlite3

connection = sqlite3.connect(':memory:')
connection.row_factory = sqlite3.Row
row = connection.execute("select 'value' as Label, 4 as count").fetchone()
(row['label'], row['LABEL'], row[-1], row.keys())

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns ('value', 'value', 4, ['Label', 'count']) (tuple)

PyPy

Returns ('value', 'value', 4, ['Label', 'count']) (tuple)

GraalPy

Returns ('value', 'value', 4, ['Label', 'count']) (tuple)

RustPython

Returns ('value', 'value', 4, ['Label', 'count']) (tuple)
PassedPassedPassedPassed
sqlite3.Connection.executeRaise IntegrityError on a duplicate key
import sqlite3

connection = sqlite3.connect(':memory:')
connection.execute('create table example (value integer unique)')
connection.execute('insert into example values (1)')
sqlite3.Connection.execute(connection, 'insert into example values (1)')

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Raises sqlite3.IntegrityError

PyPy

Raises sqlite3.IntegrityError

GraalPy

Raises sqlite3.IntegrityError

RustPython

Raises sqlite3.IntegrityError
PassedPassedPassedPassed
sqlite3.Connection.blobopenWrite and read bytes at an offset in a blob
import sqlite3

connection = sqlite3.connect(':memory:')
connection.execute('create table example (data blob)')
connection.execute('insert into example values (zeroblob(4))')
with sqlite3.Connection.blobopen(connection, 'example', 'data', 1) as blob:
    blob.seek(1)
    blob.write(b'xy')
    blob.seek(0)
    raw = blob.read()
raw

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns b'\x00xy\x00' (bytes)

PyPy

Returns b'\x00xy\x00' (bytes)

GraalPy

Returns b'\x00xy\x00' (bytes)

RustPython

Returns b'\x00xy\x00' (bytes)
PassedPassedPassedPassed
sqlite3.Connection.create_functionRegister a deterministic SQL function
import sqlite3

connection = sqlite3.connect(':memory:')
sqlite3.Connection.create_function(connection, 'triple', 1, lambda n: n * 3, deterministic=True)
connection.execute('select triple(4)').fetchone()

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (12,) (tuple)

PyPy

Returns (12,) (tuple)

GraalPy

Traceback (most recent call last):
  File "<string>", line 16, in <module>
com.oracle.truffle.api.strings.TruffleString cannot be cast to com.oracle.graal.python.builtins.objects.object.PythonObject
java.lang.ClassCastException: com.oracle.truffle.api.strings.TruffleString cannot be cast to com.oracle.graal.python.builtins.objects.object.PythonObject
	at org.graalvm.py/com.oracle.graal.python.builtins.objects.cext.capi.transitions.CApiTransitions$PythonToNativeInternalNode.doGeneric(CApiTransitions.java:1936)
	at org.graalvm.py/com.oracle.graal.python.builtins.objects.cext.capi.transitions.CApiTransitionsFactory$PythonToNativeInternalNodeGen$Inlined.executeAndSpecialize(CApiTransitionsFactory.java:750)
	at org.graalvm.py/com.oracle.graal.python.builtins.objects.cext.capi.transitions.CApiTransitionsFactory$PythonToNativeInternalNodeGen$Inlined.execute(CApiTransitionsFactory.java:676)
	at org.graalvm.py/com.oracle.graal.python.builtins.objects.cext.capi.transitions.CApiTransitions$PythonToNativeInternalNode.execute(CApiTransitions.java:1751)
	at org.graalvm.py/com.oracle.graal.python.builtins.objects.cext.capi.transitions.CApiTransitions$PythonToNativeNode.doGeneric(CApiTransitions.java:2019)
	at org.graalvm.py/com.oracle.graal.python.builtins.objects.cext.capi.transitions.CApiTransitionsFactory$PythonToNativeNodeGen.execute(CApiTransitionsFactory.java:1048)
	at org.graalvm.py/com.oracle.graal.python.builtins.objects.cext.capi.ExternalFunctionNodes$MethMethodRoot.readArgumentsAndInvokeExternalFunction(ExternalFunctionNodes.java:1271)
	at org.graalvm.py/com.oracle.graal.python.builtins.objects.cext.capi.ExternalFunctionNodes$WrapperBaseRoot.execute(ExternalFunctionNodes.java:523)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.executeRootNode(OptimizedCallTarget.java:808)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.profiledPERoot(OptimizedCallTarget.java:722)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.callBoundary(OptimizedCallTarget.java:641)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTarget.invokeCallBoundary(SubstrateOptimizedCallTarget.java:124)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTargetInstalledCode.doInvoke(SubstrateOptimizedCallTargetInstalledCode.java:245)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTarget.doInvoke(SubstrateOptimizedCallTarget.java:106)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.callDirect(OptimizedCallTarget.java:573)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.call(OptimizedCallTarget.java:519)
	at org.graalvm.truffle/com.oracle.truffle.api.nodes.IndirectCallNode$1.call(IndirectCallNode.java:96)
	at org.graalvm.py/com.oracle.graal.python.nodes.call.CallDispatchers$SimpleIndirectInvokeNode.doIndirect(CallDispatchers.java:167)
	at org.graalvm.py/com.oracle.graal.python.nodes.call.CallDispatchersFactory$SimpleIndirectInvokeNodeGen$Uncached.execute(CallDispatchersFactory.java:307)
	at org.graalvm.py/com.oracle.graal.python.nodes.call.CallDispatchers$BuiltinFunctionCachedCallNode.callBuiltinFunctionMegamorphic(CallDispatchers.java:265)
	at org.graalvm.py/com.oracle.graal.python.nodes.call.CallDispatchersFactory$BuiltinFunctionCachedCallNodeGen$Uncached.execute(CallDispatchersFactory.java:1153)
	at org.graalvm.py/com.oracle.graal.python.nodes.call.CallNode.builtinFunctionCall(CallNode.java:152)
	at org.graalvm.py/com.oracle.graal.python.nodes.call.CallNodeGen$Uncached.executeInternal(CallNodeGen.java:619)
	at org.graalvm.py/com.oracle.graal.python.nodes.call.CallNode.execute(CallNode.java:128)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNode$CallVarargsMethod.doCall(PBytecodeDSLRootNode.java:3578)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNodeGen$CallVarargsMethod_Node.execute$uncached(PBytecodeDSLRootNodeGen.java)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNodeGen$UncachedBytecodeNodeTailCall.handleCallVarargsMethod_(PBytecodeDSLRootNodeGen.java:41950)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNodeGen$UncachedBytecodeNodeTailCall.__stub_handleCallVarargsMethod_(PBytecodeDSLRootNodeGen.java:0)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNodeGen$UncachedBytecodeNodeTailCall.continueAt(PBytecodeDSLRootNodeGen.java:39799)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNodeGen.continueAt(PBytecodeDSLRootNodeGen.java:3867)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNodeGen.execute(PBytecodeDSLRootNodeGen.java:3859)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.executeRootNode(OptimizedCallTarget.java:808)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.profiledPERoot(OptimizedCallTarget.java:722)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.callBoundary(OptimizedCallTarget.java:641)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTarget.invokeCallBoundary(SubstrateOptimizedCallTarget.java:124)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTargetInstalledCode.doInvoke(SubstrateOptimizedCallTargetInstalledCode.java:245)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTarget.doInvoke(SubstrateOptimizedCallTarget.java:106)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.callDirect(OptimizedCallTarget.java:573)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.call(OptimizedCallTarget.java:519)
	at org.graalvm.py/com.oracle.graal.python.nodes.exception.TopLevelExceptionHandler.run(TopLevelExceptionHandler.java:328)
	at org.graalvm.py/com.oracle.graal.python.nodes.exception.TopLevelExceptionHandler.execute(TopLevelExceptionHandler.java:139)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.executeRootNode(OptimizedCallTarget.java:808)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.profiledPERoot(OptimizedCallTarget.java:722)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.callBoundary(OptimizedCallTarget.java:641)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTarget.invokeCallBoundary(SubstrateOptimizedCallTarget.java:124)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTargetInstalledCode.doInvoke(SubstrateOptimizedCallTargetInstalledCode.java:245)
	at org.graalvm.truffle.runtime.svm/com.oracle.svm.truffle.api.SubstrateOptimizedCallTarget.doInvoke(SubstrateOptimizedCallTarget.java:106)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.callDirect(OptimizedCallTarget.java:573)
	at org.graalvm.truffle.runtime/com.oracle.truffle.runtime.OptimizedCallTarget.call(OptimizedCallTarget.java:536)
	at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextImpl.eval(PolyglotContextImpl.java:1903)
	at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextDispatch.eval(PolyglotContextDispatch.java:62)
	at org.graalvm.polyglot/org.graalvm.polyglot.Context.eval(Context.java:419)
	at org.graalvm.py.launcher/com.oracle.graal.python.shell.GraalPythonMain.evalNonInteractive(GraalPythonMain.java:1195)
	at org.graalvm.py.launcher/com.oracle.graal.python.shell.GraalPythonMain.launch(GraalPythonMain.java:915)
	at org.graalvm.launcher/org.graalvm.launcher.AbstractLanguageLauncher.launch(AbstractLanguageLauncher.java:304)
	at org.graalvm.launcher/org.graalvm.launcher.AbstractLanguageLauncher.launch(AbstractLanguageLauncher.java:125)
	at org.graalvm.launcher/org.graalvm.launcher.AbstractLanguageLauncher.runLauncher(AbstractLanguageLauncher.java:173)
	Suppressed: Attached Guest Language Frames (3)

RustPython

Returns (12,) (tuple)
PassedPassedInternal interpreter errorPassed
ssl.MemoryBIOTrack pending bytes after a partial read
import ssl

bio = ssl.MemoryBIO()
bio.write(b'abcd')
(bio.pending, bio.read(2), bio.pending, bio.read())

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (4, b'ab', 2, b'cd') (tuple)

PyPy

Returns (4, b'ab', 2, b'cd') (tuple)

GraalPy

Returns (4, b'ab', 2, b'cd') (tuple)

RustPython

Returns (4, b'ab', 2, b'cd') (tuple)
PassedPassedPassedPassed
ssl.MemoryBIOReport EOF once read buffers are empty
import ssl

bio = ssl.MemoryBIO()
bio.write(b'ab')
bio.write_eof()
(bio.eof, bio.read(), bio.eof)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (False, b'ab', True) (tuple)

PyPy

Returns (False, b'ab', True) (tuple)

GraalPy

Returns (False, b'ab', True) (tuple)

RustPython

Returns (False, b'ab', True) (tuple)
PassedPassedPassedPassed
ssl.SSLContextEnable peer verification and hostname checks for TLS clients
import ssl

context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
(context.verify_mode == ssl.CERT_REQUIRED, context.check_hostname)

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (True, True) (tuple)

PyPy

Returns (True, True) (tuple)

GraalPy

Returns (True, True) (tuple)

RustPython

Returns (True, True) (tuple)
PassedPassedPassedPassed
ssl.SSLContext.wrap_bioExpose the configured hostname on an SSL object
import ssl

context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ssl.SSLContext.wrap_bio(context, ssl.MemoryBIO(), ssl.MemoryBIO(), server_hostname='example.test').server_hostname

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns 'example.test' (str)

PyPy

Returns 'example.test' (str)

GraalPy

Returns 'example.test' (str)

RustPython

Returns 'example.test' (str)
PassedPassedPassedPassed
mmap.mmapMove overlapping ranges within a memory map
import mmap

region = mmap.mmap(-1, 6)
region[:] = b'abcdef'
region.move(1, 0, 4)
region[:6]

Contract: CPython behavior, not documented

Upstream CPython test that checks the same behavior

CPython

Returns b'aabcdf' (bytes)

PyPy

Returns b'aabcdf' (bytes)

GraalPy

Raises an unexpected AttributeError

RustPython

Returns b'aabcdf' (bytes)
PassedPassedDifferentPassed
mmap.mmapReject closing a map with an active memory view
import mmap

region = mmap.mmap(-1, 4)
view = memoryview(region)
region.close()

Contract: CPython behavior, not documented

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Raises BufferError

PyPy

Returns None

GraalPy

Returns None

RustPython

Raises BufferError
PassedDifferentDifferentPassed
mmap.mmapAssign to a strided memory map slice
import mmap

region = mmap.mmap(-1, 6)
region[:] = b'abcdef'
region[::2] = b'xyz'
region[:]

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns b'xbydzf' (bytes)

PyPy

Returns b'xbydzf' (bytes)

GraalPy

Returns b'xbydzf' (bytes)

RustPython

Returns b'xbydzf' (bytes)
PassedPassedPassedPassed
mmap.mmapSeek backwards from the end before reading
import mmap

region = mmap.mmap(-1, 6)
region[:] = b'abcdef'
region.seek(-2, 2)
(region.tell(), region.read(2))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (4, b'ef') (tuple)

PyPy

Returns (4, b'ef') (tuple)

GraalPy

Returns (4, b'ef') (tuple)

RustPython

Returns (4, b'ef') (tuple)
PassedPassedPassedPassed
codecs.getincrementaldecoderDecode a Unicode character split across chunks
import codecs

decoder = codecs.getincrementaldecoder('utf-8')()
(decoder.decode(b'\xe2\x82'), decoder.decode(b'\xac', final=True))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns ('', '€') (tuple)

PyPy

Returns ('', '€') (tuple)

GraalPy

Returns ('', '€') (tuple)

RustPython

Returns ('', '€') (tuple)
PassedPassedPassedPassed
codecs.getincrementaldecoderReject a truncated UTF-8 sequence at EOF
import codecs

decoder = codecs.getincrementaldecoder('utf-8')()
decoder.decode(b'\xe2\x82')
decoder.decode(b'', final=True)

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Raises UnicodeDecodeError

PyPy

Raises UnicodeDecodeError

GraalPy

Raises UnicodeDecodeError

RustPython

Raises UnicodeDecodeError
PassedPassedPassedPassed
codecs.decodePreserve invalid UTF-8 bytes with surrogateescape
import codecs

ord(codecs.decode(b'\xff', 'utf-8', 'surrogateescape'))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns 56575 (int)

PyPy

Returns 56575 (int)

GraalPy

Returns 56575 (int)

RustPython

Returns 56575 (int)
PassedPassedPassedPassed
codecs.getincrementaldecoderConsume a UTF-8 BOM split across chunks
import codecs

decoder = codecs.getincrementaldecoder('utf-8-sig')()
(decoder.decode(b'\xef'), decoder.decode(b'\xbb\xbfA', final=True))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns ('', 'A') (tuple)

PyPy

Returns ('', 'A') (tuple)

GraalPy

Returns ('', 'A') (tuple)

RustPython

Returns ('', 'A') (tuple)
PassedPassedPassedPassed
datetime.datetime.fromisoformatPreserve a non-hour UTC offset
import datetime

datetime.datetime.fromisoformat('2024-02-29T12:30:15+05:45').isoformat()

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns '2024-02-29T12:30:15+05:45' (str)

PyPy

Returns '2024-02-29T12:30:15+05:45' (str)

GraalPy

Returns '2024-02-29T12:30:15+05:45' (str)

RustPython

Returns '2024-02-29T12:30:15+05:45' (str)
PassedPassedPassedPassed
datetime.datetime.fromisoformatParse the ISO 8601 UTC suffix
import datetime

datetime.datetime.fromisoformat('2024-02-29T12:30:15Z').isoformat()

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns '2024-02-29T12:30:15+00:00' (str)

PyPy

Returns '2024-02-29T12:30:15+00:00' (str)

GraalPy

Returns '2024-02-29T12:30:15+00:00' (str)

RustPython

Returns '2024-02-29T12:30:15+00:00' (str)
PassedPassedPassedPassed
datetime.date.fromisoformatReject an impossible leap-day date
import datetime

datetime.date.fromisoformat('2023-02-29')

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Raises ValueError

PyPy

Raises ValueError

GraalPy

Raises ValueError

RustPython

Raises ValueError
PassedPassedPassedPassed
zoneinfo.ZoneInfo.from_fileDisambiguate the repeated hour at a DST transition
import zoneinfo

from datetime import datetime
from io import BytesIO
from struct import pack

header = b'TZif' + bytes(16) + pack('>6I', 0, 0, 0, 2, 2, 8)
transitions = pack('>2i2B', 1615705200, 1636264800, 0, 1)
offsets = pack('>iBBiBB', -14400, 1, 0, -18000, 0, 4)
zone = zoneinfo.ZoneInfo.from_file(BytesIO(header + transitions + offsets + b'EDT\0EST\0'), key='Example/Fold')
earlier = datetime(2021, 11, 7, 1, 30, tzinfo=zone, fold=0)
later = earlier.replace(fold=1)
(earlier.isoformat(), later.isoformat(), int(later.timestamp() - earlier.timestamp()))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns ('2021-11-07T01:30:00-04:00', '2021-11-07T01:30:00-05:00', 3600) (tuple)

PyPy

Returns ('2021-11-07T01:30:00-04:00', '2021-11-07T01:30:00-05:00', 3600) (tuple)

GraalPy

Returns ('2021-11-07T01:30:00-04:00', '2021-11-07T01:30:00-05:00', 3600) (tuple)

RustPython

Returns ('2021-11-07T01:30:00-04:00', '2021-11-07T01:30:00-05:00', 3600) (tuple)
PassedPassedPassedPassed
csv.readerRead a quoted field across physical lines
import csv

list(csv.reader(['"a\n', 'b",c\n']))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns [['a\nb', 'c']] (list)

PyPy

Returns [['a\nb', 'c']] (list)

GraalPy

Returns [['a\nb', 'c']] (list)

RustPython

Returns [['a\nb', 'c']] (list)
PassedPassedPassedPassed
csv.readerPreserve an embedded null in a CSV field
import csv

list(csv.reader(['data\0field,2']))

Contract: Not yet classified

Upstream CPython test that checks the same behavior

CPython

Returns [['data\x00field', '2']] (list)

PyPy

Returns [['data\x00field', '2']] (list)

GraalPy

Returns [['data\x00field', '2']] (list)

RustPython

Returns [['data\x00field', '2']] (list)
PassedPassedPassedPassed
csv.readerReject an unterminated quoted field in strict mode
import csv

list(csv.reader(['"unclosed'], strict=True))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Raises csv.Error

PyPy

Raises csv.Error

GraalPy

Raises csv.Error

RustPython

Raises csv.Error
PassedPassedPassedPassed
csv.DictReaderCollect extra columns under the configured key
import csv

list(csv.DictReader(['name', 'item,extra,more'], restkey='rest'))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns [{'name': 'item', 'rest': ['extra', 'more']}] (list)

PyPy

Returns [{'name': 'item', 'rest': ['extra', 'more']}] (list)

GraalPy

Returns [{'name': 'item', 'rest': ['extra', 'more']}] (list)

RustPython

Returns [{'name': 'item', 'rest': ['extra', 'more']}] (list)
PassedPassedPassedPassed
itertools.pairwiseReturn overlapping pairs from a one-shot iterator
import itertools

list(itertools.pairwise(iter([1, 2, 4, 8])))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns [(1, 2), (2, 4), (4, 8)] (list)

PyPy

Returns [(1, 2), (2, 4), (4, 8)] (list)

GraalPy

Returns [(1, 2), (2, 4), (4, 8)] (list)

RustPython

Returns [(1, 2), (2, 4), (4, 8)] (list)
PassedPassedPassedPassed
itertools.isliceAdvance the original iterator to the slice stop
import itertools

items = iter(range(10))
(list(itertools.islice(items, 2, 7, 3)), next(items))

Contract: Not yet classified

Upstream CPython test that checks the same behavior

CPython

Returns ([2, 5], 7) (tuple)

PyPy

Returns ([2, 5], 7) (tuple)

GraalPy

Returns ([2, 5], 7) (tuple)

RustPython

Returns ([2, 5], 7) (tuple)
PassedPassedPassedPassed
itertools.accumulateInclude the initial value in an empty accumulation
import itertools

list(itertools.accumulate([], initial=9))

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns [9] (list)

PyPy

Returns [9] (list)

GraalPy

Returns [9] (list)

RustPython

Returns [9] (list)
PassedPassedPassedPassed
itertools.groupbyKeep separate runs of the same group key
import itertools

[(key, ''.join(values)) for key, values in itertools.groupby('aabba')]

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns [('a', 'aa'), ('b', 'bb'), ('a', 'a')] (list)

PyPy

Returns [('a', 'aa'), ('b', 'bb'), ('a', 'a')] (list)

GraalPy

Returns [('a', 'aa'), ('b', 'bb'), ('a', 'a')] (list)

RustPython

Returns [('a', 'aa'), ('b', 'bb'), ('a', 'a')] (list)
PassedPassedPassedPassed
threading.ThreadAppend from several threads without losing items
import threading

items = []

def work():
    for number in range(10000):
        items.append(number)

threads = [threading.Thread(target=work) for _ in range(4)]
for thread in threads:
    thread.start()
for thread in threads:
    thread.join()
(len(items), sum(items))

Contract: CPython behavior, not documented

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns (40000, 199980000) (tuple)

PyPy

Returns (40000, 199980000) (tuple)

GraalPy

Returns (40000, 199980000) (tuple)

RustPython

Returns (40000, 199980000) (tuple)
PassedPassedPassedPassed
threading.LockProtect a shared counter with a lock
import threading

lock = threading.Lock()
counter = [0]

def work():
    for _ in range(5000):
        with lock:
            counter[0] += 1

threads = [threading.Thread(target=work) for _ in range(4)]
for thread in threads:
    thread.start()
for thread in threads:
    thread.join()
counter[0]

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns 20000 (int)

PyPy

Returns 20000 (int)

GraalPy

Returns 20000 (int)

RustPython

Returns 20000 (int)
PassedPassedPassedPassed
threading.localKeep thread-local values separate
import threading

state = threading.local()
state.value = 'main'
seen = []

def work():
    state.value = 'worker'
    seen.append(state.value)

thread = threading.Thread(target=work)
thread.start()
thread.join()
(state.value, seen)

Contract: Documented standard library behavior

Written for this dashboard. No upstream CPython test checks this behavior.

CPython

Returns ('main', ['worker']) (tuple)

PyPy

Returns ('main', ['worker']) (tuple)

GraalPy

Returns ('main', ['worker']) (tuple)

RustPython

Returns ('main', ['worker']) (tuple)
PassedPassedPassedPassed
asyncio.TaskGroupWait for every child before leaving a task group
import asyncio

async def double(n):
    await asyncio.sleep(0)
    return n * 2

async def main():
    async with asyncio.TaskGroup() as tasks:
        first = tasks.create_task(double(1))
        second = tasks.create_task(double(4))
    return first.result(), second.result()
asyncio.run(main())

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (2, 8) (tuple)

PyPy

Returns (2, 8) (tuple)

GraalPy

Returns (2, 8) (tuple)

RustPython

Returns (2, 8) (tuple)
PassedPassedPassedPassed
asyncio.TaskGroupCancel a sibling when another child raises
import asyncio

async def main():
    ready = asyncio.Event()
    cancelled = False
    failed = False

    async def sibling():
        nonlocal cancelled
        try:
            ready.set()
            await asyncio.Event().wait()
        finally:
            cancelled = True

    async def fail():
        await ready.wait()
        raise LookupError('child failed')

    try:
        async with asyncio.TaskGroup() as tasks:
            tasks.create_task(sibling())
            tasks.create_task(fail())
    except* LookupError:
        failed = True
    return failed, cancelled
asyncio.run(main())

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns (True, True) (tuple)

PyPy

Returns (True, True) (tuple)

GraalPy

Returns (True, True) (tuple)

RustPython

Returns (True, True) (tuple)
PassedPassedPassedPassed
asyncio.TaskGroupPass an explicit context to a child task
import asyncio

from contextvars import Context, ContextVar
label = ContextVar('label', default='parent')

async def read():
    return label.get()

async def main():
    context = Context()
    context.run(label.set, 'child')
    async with asyncio.TaskGroup() as tasks:
        child = tasks.create_task(read(), context=context)
    return child.result(), label.get()
asyncio.run(main())

Contract: Documented standard library behavior

Upstream CPython test that checks the same behavior

CPython

Returns ('child', 'parent') (tuple)

PyPy

Returns ('child', 'parent') (tuple)

GraalPy

Returns ('child', 'parent') (tuple)

RustPython

Returns ('child', 'parent') (tuple)
PassedPassedPassedPassed

CPython tests

Selected test methods from the CPython source tree, run on CPython, PyPy, GraalPy and RustPython.

CPython 3.12.15

64 / 64

PyPy 8.0.1

64 / 64

GraalPy 25.2.4

62 / 64

1 difference · 1 test error

RustPython 0.6.0a0

55 / 64

Implements Python 3.14.0a0; the reference is 3.12.15. A difference can come from the version.

9 blocked measurements

CaseCPythonPyPyGraalPyRustPythonPython 3.14 · other version
test_empty_objectsjson

View source test

RustPython

Failed to import test module: test_json
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_json", line 13, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'json'
PassedPassedPassedMeasurement blocked
test_floatjson

View source test

RustPython

Failed to import test module: test_json
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_json", line 13, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'json'
PassedPassedPassedMeasurement blocked
test_object_pairs_hookjson

View source test

RustPython

Failed to import test module: test_json
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_json", line 13, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'json'
PassedPassedPassedMeasurement blocked
test_big_unicode_decodejson

View source test

RustPython

Failed to import test module: test_json
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_json", line 13, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'json'
PassedPassedPassedMeasurement blocked
test_separatorsjson

View source test

RustPython

Failed to import test module: test_json
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_json", line 13, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'json'
PassedPassedPassedMeasurement blocked
test_calcsizestruct
PassedPassedPassedPassed
test_transitivenessstruct
PassedPassedPassedPassed
test_unpack_fromstruct
PassedPassedPassedPassed
test_pack_intostruct
PassedPassedPassedPassed
test_module_funcstruct
PassedPassedPassedPassed
test_base64validbinascii
PassedPassedPassedPassed
test_hexbinascii
PassedPassedPassedPassed
test_crc32binascii
PassedPassedPassedPassed
test_crc_hqxbinascii
PassedPassedPassedPassed
test_b2a_base64_newlinebinascii
PassedPassedPassedPassed
testSqrtmath
PassedPassedPassedPassed
testFloormath
PassedPassedPassedPassed
testIsnanmath
PassedPassedPassedPassed
testGcdmath
PassedPassedPassedPassed
test_near_zeromath
PassedPassedPassedPassed
test_fullmatch_atomic_groupingre

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_re.py:197: SyntaxWarning: invalid octal escape sequence '\377'
  self.assertEqual(re.sub('x', r'\377', 'x'), '\377')
PassedPassedPassedPassed
test_fullmatch_possessive_quantifiersre

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_re.py:197: SyntaxWarning: invalid octal escape sequence '\377'
  self.assertEqual(re.sub('x', r'\377', 'x'), '\377')
PassedPassedPassedPassed
test_ignore_case_rangere

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_re.py:197: SyntaxWarning: invalid octal escape sequence '\377'
  self.assertEqual(re.sub('x', r'\377', 'x'), '\377')
PassedPassedPassedPassed
test_re_groupref_existsre

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_re.py:197: SyntaxWarning: invalid octal escape sequence '\377'
  self.assertEqual(re.sub('x', r'\377', 'x'), '\377')
PassedPassedPassedPassed
test_lookbehindre

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_re.py:197: SyntaxWarning: invalid octal escape sequence '\377'
  self.assertEqual(re.sub('x', r'\377', 'x'), '\377')
PassedPassedPassedPassed
test_quantizedecimal

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_decimal.py:5966: UserWarning: C tests skipped: no module named _decimal.
  warnings.warn('C tests skipped: no module named _decimal.',

GraalPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_decimal.py:5966: UserWarning: C tests skipped: no module named _decimal.
  warnings.warn('C tests skipped: no module named _decimal.',

RustPython

Failed to import test module: test_decimal
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_decimal", line 56, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'decimal'
PassedPassedPassedMeasurement blocked
test_nested_with_statementsdecimal

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_decimal.py:5966: UserWarning: C tests skipped: no module named _decimal.
  warnings.warn('C tests skipped: no module named _decimal.',

GraalPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_decimal.py:5966: UserWarning: C tests skipped: no module named _decimal.
  warnings.warn('C tests skipped: no module named _decimal.',

RustPython

Failed to import test module: test_decimal
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_decimal", line 56, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'decimal'
PassedPassedPassedMeasurement blocked
test_local_context_kwargs_does_not_overwrite_existing_argumentdecimal

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_decimal.py:5966: UserWarning: C tests skipped: no module named _decimal.
  warnings.warn('C tests skipped: no module named _decimal.',

GraalPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_decimal.py:5966: UserWarning: C tests skipped: no module named _decimal.
  warnings.warn('C tests skipped: no module named _decimal.',

RustPython

Failed to import test module: test_decimal
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_decimal", line 56, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'decimal'
PassedPassedPassedMeasurement blocked
test_explicit_from_floatdecimal

View source test

PyPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_decimal.py:5966: UserWarning: C tests skipped: no module named _decimal.
  warnings.warn('C tests skipped: no module named _decimal.',

GraalPy

/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_decimal.py:5966: UserWarning: C tests skipped: no module named _decimal.
  warnings.warn('C tests skipped: no module named _decimal.',

RustPython

Failed to import test module: test_decimal
Traceback (most recent call last):
  File "unittest.loader", line 137, in loadTestsFromName
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1179, in exec_module
  File "test.test_decimal", line 56, in <module>
  File "test.support.import_helper", line 182, in import_fresh_module
  File "importlib", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'decimal'
PassedPassedPassedMeasurement blocked
test_decompress_eof_incomplete_streamzlib
PassedPassedPassedPassed
test_decompress_unused_datazlib
PassedPassedPassedPassed
test_decompressmaxlenzlib
PassedPassedPassedPassed
test_dictionary_streamingzlib
PassedPassedPassedPassed
test_sqlite_row_as_dictsqlite3

View source test

CPython

test_sqlite3: testing with SQLite version 3.53.1

PyPy

test_sqlite3: testing with SQLite version 3.47.2

GraalPy

test_sqlite3: testing with SQLite version 3.47.2
PassedPassedPassedPassed
test_sqlite_row_index_unicodesqlite3

View source test

CPython

test_sqlite3: testing with SQLite version 3.53.1

PyPy

test_sqlite3: testing with SQLite version 3.47.2

GraalPy

test_sqlite3: testing with SQLite version 3.47.2
PassedPassedPassedPassed
test_sqlite_row_slicesqlite3

View source test

CPython

test_sqlite3: testing with SQLite version 3.53.1

PyPy

test_sqlite3: testing with SQLite version 3.47.2

GraalPy

test_sqlite3: testing with SQLite version 3.47.2
PassedPassedPassedPassed
test_simplesqlite3

View source test

CPython

test_sqlite3: testing with SQLite version 3.53.1

PyPy

test_sqlite3: testing with SQLite version 3.47.2

GraalPy

test_sqlite3: testing with SQLite version 3.47.2
PassedPassedPassedPassed
test_progresssqlite3

View source test

CPython

test_sqlite3: testing with SQLite version 3.53.1

PyPy

test_sqlite3: testing with SQLite version 3.47.2

GraalPy

test_sqlite3: testing with SQLite version 3.47.2
PassedPassedPassedPassed
test_pendingssl

View source test

CPython

test_ssl: testing with 'OpenSSL 3.5.9 29 Sep 2026' (3, 5, 0, 9, 0)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.39'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

PyPy

test_ssl: testing with 'OpenSSL 3.5.9 29 Sep 2026' (3, 5, 0, 9, 0)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.39'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

GraalPy

test_ssl: testing with 'OpenSSL compatible GraalVM JSSE' (9, 9, 9, 9, 9)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.16'
          HAS_SNI = True
          OP_ALL = 0x   20000
          OP_NO_TLSv1_1 = 0x10000000

RustPython

test_ssl: testing with 'OpenSSL 3.3.0-compatible (AWS-LC/rustls 0.23)' (3, 3, 0, 0, 15)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.38'
          HAS_SNI = True
          OP_ALL = 0x     bfb
          OP_NO_TLSv1_1 = 0x10000000
PassedPassedPassedPassed
test_eofssl

View source test

CPython

test_ssl: testing with 'OpenSSL 3.5.9 29 Sep 2026' (3, 5, 0, 9, 0)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.39'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

PyPy

test_ssl: testing with 'OpenSSL 3.5.9 29 Sep 2026' (3, 5, 0, 9, 0)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.39'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

GraalPy

test_ssl: testing with 'OpenSSL compatible GraalVM JSSE' (9, 9, 9, 9, 9)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.16'
          HAS_SNI = True
          OP_ALL = 0x   20000
          OP_NO_TLSv1_1 = 0x10000000

RustPython

test_ssl: testing with 'OpenSSL 3.3.0-compatible (AWS-LC/rustls 0.23)' (3, 3, 0, 0, 15)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.38'
          HAS_SNI = True
          OP_ALL = 0x     bfb
          OP_NO_TLSv1_1 = 0x10000000
PassedPassedPassedPassed
test_context_client_serverssl

View source test

CPython

test_ssl: testing with 'OpenSSL 3.5.9 29 Sep 2026' (3, 5, 0, 9, 0)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.39'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

PyPy

test_ssl: testing with 'OpenSSL 3.5.9 29 Sep 2026' (3, 5, 0, 9, 0)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.39'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

GraalPy

test_ssl: testing with 'OpenSSL compatible GraalVM JSSE' (9, 9, 9, 9, 9)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.16'
          HAS_SNI = True
          OP_ALL = 0x   20000
          OP_NO_TLSv1_1 = 0x10000000

RustPython

test_ssl: testing with 'OpenSSL 3.3.0-compatible (AWS-LC/rustls 0.23)' (3, 3, 0, 0, 15)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.38'
          HAS_SNI = True
          OP_ALL = 0x     bfb
          OP_NO_TLSv1_1 = 0x10000000
PassedPassedPassedPassed
test_buffer_typesssl

View source test

CPython

test_ssl: testing with 'OpenSSL 3.5.9 29 Sep 2026' (3, 5, 0, 9, 0)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.39'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

PyPy

test_ssl: testing with 'OpenSSL 3.5.9 29 Sep 2026' (3, 5, 0, 9, 0)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.39'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

GraalPy

test_ssl: testing with 'OpenSSL compatible GraalVM JSSE' (9, 9, 9, 9, 9)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.16'
          HAS_SNI = True
          OP_ALL = 0x   20000
          OP_NO_TLSv1_1 = 0x10000000

RustPython

test_ssl: testing with 'OpenSSL 3.3.0-compatible (AWS-LC/rustls 0.23)' (3, 3, 0, 0, 15)
          under 'Linux-7.0.0-1020-azure-x86_64-with-glibc2.38'
          HAS_SNI = True
          OP_ALL = 0x     bfb
          OP_NO_TLSv1_1 = 0x10000000
PassedPassedPassedPassed
test_movemmap

View source test

GraalPy

Traceback (most recent call last):
  File "/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_mmap.py", line 397, in test_move
    mf.move(5, 0, 5)
AttributeError: 'mmap.mmap' object has no attribute 'move'
PassedPassedTest errorPassed
test_extended_getslicemmap

View source test

GraalPy

Traceback (most recent call last):
  File "/tmp/python-conformity-rthnc6j0/Python-3.12.15/Lib/test/test_mmap.py", line 488, in test_extended_getslice
    self.assertEqual(m[start:stop:step],
AssertionError: b'\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8\xf7\xf6[300 chars]\xaa' != b"\xff\xfc\xf9\xf6\xf3\xf0\xed\xea\xe7\xe4[202 chars]\x00"
PassedPassedDifferentPassed
test_extended_set_del_slicemmap
PassedPassedPassedPassed
test_context_managermmap
PassedPassedPassedPassed
test_partialcodecs
PassedPassedPassedPassed
test_decode_errorcodecs
PassedPassedPassedPassed
test_utf8codecs
PassedPassedPassedPassed
test_partialcodecs
PassedPassedPassedPassed
test_fromisoformat_timezonedatetime
PassedPassedPassedPassed
test_fromisoformat_utcdatetime
PassedPassedPassedPassed
test_fromisoformat_failsdatetime
PassedPassedPassedPassed
test_roundtrip_quoteed_newlinescsv
PassedPassedPassedPassed
test_read_nulcsv
PassedPassedPassedPassed
test_read_eofcsv
PassedPassedPassedPassed
test_read_long_with_restcsv
PassedPassedPassedPassed
test_pairwiseitertools
PassedPassedPassedPassed
test_isliceitertools
PassedPassedPassedPassed
test_accumulateitertools
PassedPassedPassedPassed
test_groupbyitertools
PassedPassedPassedPassed
test_taskgroup_01asyncio
PassedPassedPassedPassed
test_cancel_children_on_child_errorasyncio
PassedPassedPassedPassed
test_taskgroup_task_contextasyncio
PassedPassedPassedPassed

Interpreters

Four threads run the same CPU-bound function. The speedup compares them with four sequential calls. About ×1 means the threads take turns, as under a global interpreter lock. A value close to the number of workers means they run in parallel. The measurement is limited by the cores of the machine that ran it.

InterpreterReleasePythonWheel ABIGILThread speedup
CPython3.12.153.12.15cp312Not reported×1.01 · 4 threads · 4 cores
PyPy8.0.13.12.15pypy312_pp80Not reported×0.97 · 4 threads · 4 cores
GraalPy25.2.43.12.8graalpy250_312_nativeNot reported×1 · 4 threads · 4 cores
RustPython0.6.0a03.14.0a0Not the 3.12.15 referencerustpython313_x86_64_linux_gnuDisabled×2.17 · 4 threads · 4 cores

Performance

Each benchmark runs in its own process on each interpreter: one cold call, warm-up rounds for JIT compilers, then timed rounds for a few seconds, at least three. The table shows the median. An answer that differs from CPython's is reported as a difference instead of a time. These are classic kernels (n-body, fannkuch-redux, spectral norm, n-queens, floating point) and standard library workloads (json, re, collections), run on shared GitHub-hosted machines, so differences under about 10% mean little.

Geometric mean speed

CPython 3.12.15

×1

reference

PyPy 3.12.15

×4.5

across every benchmark

GraalPy 3.12.8

×2

across every benchmark

RustPython 3.14.0.alpha

×0.31

across every benchmark

BenchmarkCPythonPyPyGraalPyRustPython
nbodyN-body simulation
0.247 sreference
Median 0.247 s · minimum 0.242 s · deviation 0.00183 s
11 timed rounds · first call 0.244 s
0.0107 s23× faster
Median 0.0107 s · minimum 0.0106 s · deviation 0.00012 s
15 timed rounds · first call 0.0192 s
0.037 s6.7× faster
Median 0.037 s · minimum 0.0242 s · deviation 0.0619 s
15 timed rounds · first call 0.467 s
1.19 s4.8× slower
Median 1.19 s · minimum 1.19 s · deviation 0.00153 s
3 timed rounds · first call 1.19 s
fannkuchFannkuch-redux permutations
0.196 sreference
Median 0.196 s · minimum 0.196 s · deviation 0.0003 s
13 timed rounds · first call 0.197 s
0.0317 s6.2× faster
Median 0.0317 s · minimum 0.0315 s · deviation 0.00028 s
15 timed rounds · first call 0.043 s
0.0307 s6.4× faster
Median 0.0307 s · minimum 0.0241 s · deviation 0.00327 s
15 timed rounds · first call 0.556 s
0.857 s4.4× slower
Median 0.857 s · minimum 0.857 s · deviation 0.00053 s
3 timed rounds · first call 0.851 s
spectral-normSpectral norm
0.277 sreference
Median 0.277 s · minimum 0.275 s · deviation 0.00078 s
10 timed rounds · first call 0.276 s
0.023 s12× faster
Median 0.023 s · minimum 0.0229 s · deviation 0.00009 s
15 timed rounds · first call 0.0436 s
0.0808 s3.4× faster
Median 0.0808 s · minimum 0.0755 s · deviation 0.0463 s
15 timed rounds · first call 0.598 s
1.71 s6.2× slower
Median 1.71 s · minimum 1.71 s · deviation 0.00507 s
3 timed rounds · first call 1.35 s
nqueensN-queens with permutations
0.161 sreference
Median 0.161 s · minimum 0.161 s · deviation 0.00044 s
15 timed rounds · first call 0.163 s
0.0664 s2.4× faster
Median 0.0664 s · minimum 0.066 s · deviation 0.00061 s
15 timed rounds · first call 0.0819 s
0.314 s1.9× slower
Median 0.314 s · minimum 0.306 s · deviation 0.0121 s
8 timed rounds · first call 0.694 s
0.624 s3.9× slower
Median 0.624 s · minimum 0.621 s · deviation 0.00217 s
5 timed rounds · first call 0.63 s
floatFloating-point objects
0.389 sreference
Median 0.389 s · minimum 0.374 s · deviation 0.0059 s
7 timed rounds · first call 0.39 s
0.0462 s8.4× faster
Median 0.0462 s · minimum 0.034 s · deviation 0.00631 s
15 timed rounds · first call 0.0596 s
0.104 s3.8× faster
Median 0.104 s · minimum 0.0377 s · deviation 0.0718 s
15 timed rounds · first call 0.965 s
1.23 s3.2× slower
Median 1.23 s · minimum 1.23 s · deviation 0.00341 s
3 timed rounds · first call 1.24 s
jsonJSON encode and decode
0.15 sreference
Median 0.15 s · minimum 0.149 s · deviation 0.00075 s
15 timed rounds · first call 0.153 s
0.178 s1.2× slower
Median 0.178 s · minimum 0.177 s · deviation 0.00175 s
14 timed rounds · first call 0.212 s
0.316 s2.1× slower
Median 0.316 s · minimum 0.302 s · deviation 0.031 s
8 timed rounds · first call 0.665 s
0.232 s1.5× slower
Median 0.232 s · minimum 0.23 s · deviation 0.0008 s
11 timed rounds · first call 0.232 s
regexRegular expression search
0.154 sreference
Median 0.154 s · minimum 0.153 s · deviation 0.00124 s
15 timed rounds · first call 0.159 s
0.0754 s2.0× faster
Median 0.0754 s · minimum 0.0747 s · deviation 0.00054 s
15 timed rounds · first call 0.106 s
0.115 s1.3× faster
Median 0.115 s · minimum 0.0696 s · deviation 0.0728 s
15 timed rounds · first call 0.561 s
0.292 s1.9× slower
Median 0.292 s · minimum 0.291 s · deviation 0.00332 s
9 timed rounds · first call 0.294 s
word-countWord frequency count
0.21 sreference
Median 0.21 s · minimum 0.208 s · deviation 0.00212 s
12 timed rounds · first call 0.218 s
0.0796 s2.6× faster
Median 0.0796 s · minimum 0.0784 s · deviation 0.00175 s
15 timed rounds · first call 0.112 s
0.175 s1.2× faster
Median 0.175 s · minimum 0.147 s · deviation 0.0747 s
13 timed rounds · first call 0.773 s
0.478 s2.3× slower
Median 0.478 s · minimum 0.473 s · deviation 0.00311 s
6 timed rounds · first call 0.477 s

History

Each measurement run adds one point. The same projects and releases are tested every time, so a change reflects the interpreters and the ecosystem.

Top 50 packages imported
  • CPython
  • PyPy
  • GraalPy
  • CPython 3.14t
  • RustPython
025502026-11-252026-11-252026-11-262026-11-30
Table view
RunCPythonPyPyGraalPyCPython 3.14tRustPython
2026-11-2550 / 5037 / 5040 / 5050 / 50
2026-11-2550 / 5037 / 5040 / 5050 / 50
2026-11-2550 / 5037 / 5040 / 5050 / 50
2026-11-2550 / 5037 / 5040 / 5050 / 50
2026-11-2550 / 5037 / 5040 / 5050 / 50
2026-11-2550 / 5037 / 5040 / 5050 / 5036 / 50
2026-11-2650 / 5037 / 5040 / 5050 / 5036 / 50
2026-11-2650 / 5037 / 5040 / 50
2026-11-2650 / 5038 / 5041 / 50
2026-11-2650 / 5038 / 5041 / 5036 / 50
2026-11-2650 / 5038 / 5041 / 5036 / 50
2026-11-2650 / 5041 / 5041 / 5036 / 50
2026-11-2650 / 5041 / 5041 / 5036 / 50
2026-11-3050 / 5041 / 5041 / 5036 / 50
Application scenarios passed
  • CPython
  • PyPy
  • GraalPy
  • CPython 3.14t
  • RustPython
0242026-11-252026-11-252026-11-262026-11-30
Table view
RunCPythonPyPyGraalPyCPython 3.14tRustPython
2026-11-254 / 43 / 43 / 44 / 4
2026-11-254 / 43 / 43 / 44 / 4
2026-11-254 / 43 / 43 / 44 / 4
2026-11-254 / 43 / 43 / 44 / 4
2026-11-254 / 43 / 43 / 44 / 42 / 4
2026-11-254 / 43 / 43 / 44 / 42 / 4
2026-11-264 / 43 / 43 / 44 / 42 / 4
2026-11-264 / 43 / 43 / 4
2026-11-264 / 43 / 43 / 4
2026-11-264 / 43 / 43 / 42 / 4
2026-11-264 / 43 / 43 / 42 / 4
2026-11-264 / 43 / 43 / 42 / 4
2026-11-264 / 43 / 43 / 42 / 4
2026-11-304 / 43 / 43 / 42 / 4
Shared cases passed
  • CPython
  • PyPy
  • GraalPy
  • CPython 3.14t
  • RustPython
038762026-11-252026-11-252026-11-262026-11-30
Table view
RunCPythonPyPyGraalPyCPython 3.14tRustPython
2026-11-2576 / 7675 / 7673 / 7676 / 76
2026-11-2576 / 7675 / 7673 / 7676 / 76
2026-11-2576 / 7675 / 7673 / 7676 / 76
2026-11-2576 / 7675 / 7673 / 7676 / 76
2026-11-2576 / 7675 / 7673 / 7676 / 7676 / 76
2026-11-2576 / 7675 / 7673 / 7676 / 7676 / 76
2026-11-2676 / 7675 / 7673 / 7676 / 7676 / 76
2026-11-2676 / 7675 / 7673 / 76
2026-11-2676 / 7675 / 7673 / 76
2026-11-2676 / 7675 / 7673 / 7676 / 76
2026-11-2676 / 7675 / 7673 / 7676 / 76
2026-11-2676 / 7675 / 7673 / 7676 / 76
2026-11-2676 / 7675 / 7673 / 7676 / 76
2026-11-3076 / 7675 / 7673 / 7676 / 76
Speed relative to CPython (geometric mean)
  • CPython
  • PyPy
  • GraalPy
  • RustPython
  • CPython 3.14t
×0.1×1×102026-11-252026-11-252026-11-262026-11-30
Table view
RunCPythonPyPyGraalPyRustPythonCPython 3.14t
2026-11-25×1×4.2×1.9×0.26×0.94
2026-11-25×1×4.1×1.8×0.26×0.95
2026-11-25×1×4.1×1.9×0.26×0.95
2026-11-25×1×4.4×1.9×0.32×0.98
2026-11-25×1×4.1×1.9×0.26×0.94
2026-11-25×1×4×1.8×0.26×0.94
2026-11-26×1×4.1×1.8×0.26×0.94
2026-11-26×1×4.3×1.9
2026-11-26×1×4.1×1.7
2026-11-26×1×4.5×2×0.32
2026-11-26×1×4.4×2×0.32
2026-11-26×1×4.3×2×0.25
2026-11-26×1×4.2×1.8×0.25
2026-11-30×1×4.5×2×0.31
Thread speedup (4 CPU-bound threads)
  • CPython
  • PyPy
  • GraalPy
  • RustPython
  • CPython 3.14t
×0×1×2×3×42026-11-252026-11-252026-11-262026-11-30
Table view
RunCPythonPyPyGraalPyRustPythonCPython 3.14t
2026-11-25×1×0.86×0.99×1.68×2.01
2026-11-25×0.99×0.85×1×1.8×2.07
2026-11-25×1×0.86×0.99×1.41×2.06
2026-11-25×1×0.97×1×2.23×2.27
2026-11-25×1×0.85×1×1.65×2.05
2026-11-25×1×0.86×1×1.68×1.98
2026-11-26×1.03×0.85×0.99×1.73×2.01
2026-11-26×1.15×0.8×1
2026-11-26×1.03×0.85×0.99
2026-11-26×0.99×0.96×0.99×2.18
2026-11-26×1.01×0.96×1×2.21
2026-11-26×1.05×0.78×1×2.26
2026-11-26×1.04×0.8×1×2.15
2026-11-30×1.01×0.97×1×2.17
Methodology and scope

Shared cases compare observed types and values with CPython. For invalid inputs, they check whether callers can catch the exception using the expected public class.

The CPython tests view runs selected upstream test methods on CPython, PyPy, GraalPy and RustPython. The JSON test harness enables the CPython accelerator when available. Shared cases import the module as usual.

These results apply to the cases, versions and platform shown. The shared cases cover APIs available in the reference CPython version. A module can be unavailable in a specific build. Each row links to the source test.