Commit 3efa0d8
fix(performance): eliminate memory debugging overhead from benchmarks
The 3-4x performance regression was caused by memory optimization environment
variables (PYTHONMALLOC=debug, single-threading) that prevent segfaults but
severely impact benchmark performance.
Changes:
- Remove CI=true/GITHUB_ACTIONS=true from benchmark workflows to avoid memory debugging
- Set optimal performance environment for benchmarks (4 threads vs 1)
- Use direct pytest for benchmarks instead of run_tests.py wrapper
- Keep memory optimizations only for regular tests that need segfault protection
- Maintain consistent text size (100 repetitions) across all environments
This should restore benchmark performance to expected levels while maintaining
segfault protection for regular test runs.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a886334 commit 3efa0d8
File tree
3 files changed
+14
-9
lines changed- .github/workflows
- tests
3 files changed
+14
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | | - | |
46 | | - | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
34 | | - | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments