Skip to content

[mypyc] Support _benchmark test suffix for optimized run tests#21047

Merged
JukkaL merged 2 commits intomasterfrom
mypyc-benchmark-test
Mar 19, 2026
Merged

[mypyc] Support _benchmark test suffix for optimized run tests#21047
JukkaL merged 2 commits intomasterfrom
mypyc-benchmark-test

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Mar 19, 2026

If a mypyc run test has _benchmark in the test name as a suffix (not necessarily the final suffix), the test case will be compiled with optimizations enabled, and this also applies to librt if it needs to be built. The idea is that this can be used to easily run librt benchmarks by using temporary throwaway tests.

Tested by manually running some test cases with and without a _benchmark suffix.

@JukkaL JukkaL merged commit bf1b7c8 into master Mar 19, 2026
17 checks passed
@JukkaL JukkaL deleted the mypyc-benchmark-test branch March 19, 2026 15:55
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