Skip to content

Extend struct performance tests - #1092

Merged
provinzkraut merged 2 commits into
msgspec:mainfrom
provinzkraut:more-struct-tests
Jun 20, 2026
Merged

provinzkraut merged 2 commits into
msgspec:mainfrom
provinzkraut:more-struct-tests

Conversation

@provinzkraut

Copy link
Copy Markdown
Member

Extend the continuous benchmarks for structs, to include more common struct operations, and complex structs.

@provinzkraut
provinzkraut requested a review from ofek June 20, 2026 20:39
@codspeed

codspeed Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 252 untouched benchmarks
🆕 22 new benchmarks

Performance Changes

Mode Benchmark BASE HEAD Efficiency
🆕 Simulation test_copy_complex[amd] N/A 17.7 µs N/A
🆕 Simulation test_copy[amd] N/A 17.9 µs N/A
🆕 Simulation test_equality_complex[amd] N/A 210.7 µs N/A
🆕 Simulation test_fields[amd-class] N/A 143.5 µs N/A
🆕 Simulation test_fields[amd-complex_class] N/A 161.2 µs N/A
🆕 Simulation test_fields[amd-complex_instance] N/A 160.5 µs N/A
🆕 Simulation test_fields[amd-instance] N/A 144.2 µs N/A
🆕 Simulation test_pickle_dump[amd] N/A 2.2 ms N/A
🆕 Simulation test_pickle_load[amd] N/A 1.7 ms N/A
🆕 Simulation test_replace[amd-copy] N/A 21.3 µs N/A
🆕 Simulation test_replace[amd-msgspec] N/A 16.3 µs N/A
🆕 Simulation test_copy_complex[arm] N/A 17.4 µs N/A
🆕 Simulation test_copy[arm] N/A 17.6 µs N/A
🆕 Simulation test_equality_complex[arm] N/A 211.4 µs N/A
🆕 Simulation test_fields[arm-class] N/A 140 µs N/A
🆕 Simulation test_fields[arm-complex_class] N/A 157.8 µs N/A
🆕 Simulation test_fields[arm-complex_instance] N/A 156.1 µs N/A
🆕 Simulation test_fields[arm-instance] N/A 140.3 µs N/A
🆕 Simulation test_pickle_dump[arm] N/A 2.2 ms N/A
🆕 Simulation test_pickle_load[arm] N/A 1.6 ms N/A
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.


Comparing provinzkraut:more-struct-tests (3cd8f84) with main (7945d4b)

Open in CodSpeed

Comment thread tests/prof/perf/test_structs.py Resolved
@provinzkraut
provinzkraut added this pull request to the merge queue Jun 20, 2026
Merged via the queue into msgspec:main with commit a1b31e7 Jun 20, 2026
26 checks passed
@provinzkraut
provinzkraut deleted the more-struct-tests branch June 20, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants