Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ Version 1.15.0 (unreleased)
* Add support for Python 3.15 and drop 3.10
* Bump tornado to 6.6 (fixes ``BufferError`` on PyPy)
* Bump genshi to 0.7.12 (fixes ``TypeError`` on Python 3.15)
* Bump the pinned dependencies of most benchmarks to current releases,
including Django 5.2, SQLAlchemy 2.1, dulwich 1.2, SymPy 1.14, Mako 1.4,
docutils 0.22, sqlglot 30, websockets 17, Sphinx 9.0 and dask 2026.8.
* Port the SQLAlchemy benchmarks to the SQLAlchemy 2 API and drop the
``greenlet`` requirement
* ``mako``: use the pure Python implementation of ``markupsafe``, which Mako
now requires
* Bump ``pyperf`` to 2.11.0 and ``psutil`` to 7.2.2

Version 1.14.0 (2026-02-07)
---------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
websockets==11.0.3
websockets==17.4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
chameleon==4.6.0
chameleon==4.6.1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
coverage==7.3.2
coverage==7.17.3
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dask[distributed]==2024.10.0
dask[distributed]==2026.8.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
asgiref==3.3.4
django==3.2.4
pytz==2021.1
sqlparse==0.4.1
legacy-cgi==2.6
asgiref==3.13.0
django==5.2.19
pytz==2026.6
sqlparse==0.6.1
legacy-cgi==2.6.4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docutils==0.18.1
docutils==0.22.4
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
certifi==2026.10.18
dulwich==0.20.23
urllib3==1.26.5
certifi==2026.10.23
dulwich==1.2.21
urllib3==2.8.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fastapi==0.121.0
fastapi==0.162.7
httpx==0.28.1
uvicorn==0.38.0
uvicorn==0.54.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mercurial==5.8
mercurial==7.2.4
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
html5lib==1.1
six==1.16.0
six==1.17.0
webencodings==0.5.1
4 changes: 2 additions & 2 deletions pyperformance/data-files/benchmarks/bm_mako/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mako==1.1.4
markupsafe==2.0.1
mako==1.4.3
markupsafe==3.0.4
5 changes: 3 additions & 2 deletions pyperformance/data-files/benchmarks/bm_mako/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

import pyperf

# Mako imports (w/o markupsafe)
sys.modules['markupsafe'] = None
# Mako requires markupsafe; use its pure Python implementation
# rather than the C speedups.
sys.modules['markupsafe._speedups'] = None

import mako # noqa
from mako.template import Template # noqa
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
networkx==3.4.2
networkx==3.6.1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sphinx==7.3.7
python-docs-theme==2024.6
sphinx==9.0.4
python-docs-theme==2025.2
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
greenlet==3.2.4
sqlalchemy==1.4.19
sqlalchemy==2.1.8
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import pyperf

from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy.orm import declarative_base, relationship, sessionmaker
from sqlalchemy import create_engine


Expand Down Expand Up @@ -37,11 +36,6 @@ class Address(Base):
# statements in raw SQL.
Base.metadata.create_all(engine)


# Bind the engine to the metadata of the Base class so that the
# declaratives can be accessed through a DBSession instance
Base.metadata.bind = engine

DBSession = sessionmaker(bind=engine)
# A DBSession() instance establishes all conversations with the database
# and represents a "staging zone" for all the objects loaded into the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
greenlet==3.2.4
sqlalchemy==1.4.19
sqlalchemy==2.1.8
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pyperf

from sqlalchemy import Column, ForeignKey, Integer, String, Table, MetaData
from sqlalchemy import create_engine, delete, insert, select
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine


metadata = MetaData()
Expand All @@ -26,11 +26,6 @@
# statements in raw SQL.
metadata.create_all(engine)


# Bind the engine to the metadata of the Base class so that the
# declaratives can be accessed through a DBSession instance
metadata.bind = engine

DBSession = sessionmaker(bind=engine)
# A DBSession() instance establishes all conversations with the database
# and represents a "staging zone" for all the objects loaded into the
Expand All @@ -48,28 +43,24 @@ def bench_sqlalchemy(loops, npeople):

for loops in range(loops):
# drop rows created by the previous benchmark
cur = Person.delete()
cur.execute()

cur = Address.delete()
cur.execute()
session.execute(delete(Person))
session.execute(delete(Address))

# Run the benchmark once
t0 = pyperf.perf_counter()

for i in range(npeople):
# Insert a Person in the person table
new_person = Person.insert()
new_person.execute(name="name %i" % i)
new_person = insert(Person).values(name="name %i" % i)
session.execute(new_person)

# Insert an Address in the address table
new_address = Address.insert()
new_address.execute(post_code='%05i' % i)
new_address = insert(Address).values(post_code='%05i' % i)
session.execute(new_address)

# do 'npeople' queries per insert
for i in range(npeople):
cur = Person.select()
cur.execute()
session.execute(select(Person))

total_dt += (pyperf.perf_counter() - t0)

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sqlglot==4.6.0
sqlglot==30.31.0
4 changes: 2 additions & 2 deletions pyperformance/data-files/benchmarks/bm_sympy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mpmath==1.2.1
sympy==1.8
mpmath==1.3.0
sympy==1.14.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tomli==2.0.1
tomli==2.1.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tornado==6.6
tornado==6.6.1
2 changes: 1 addition & 1 deletion pyperformance/data-files/benchmarks/bm_xdsl/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "pyperformance_bm_xdsl"
requires-python = ">=3.10"
dependencies = ["pyperf", "xdsl==0.46.0"]
dependencies = ["pyperf", "xdsl"]
urls = {repository = "https://github.com/python/pyperformance"}
dynamic = ["version"]

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
xdsl==0.54.3
xdsl==0.76.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyyaml==6.0.1
pyyaml==6.0.3
4 changes: 2 additions & 2 deletions pyperformance/requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#
packaging>=24.1
# via -r requirements.in
psutil==7.0.0
psutil==7.2.2
# via
# -r requirements.in
# pyperf
pyperf==2.10.0
pyperf==2.11.0
# via -r requirements.in
Loading