Commit 35e970c
authored
test(benchmarks): parametrize enum microbench inputs (#232)
## Summary
- add enum benchmark suite for call/reward types
- parametrize call/reward enums over string, int, and enum-member inputs
- keep status enum benchmark coverage intact
## Rationale
We want more robust microbench coverage for enum coercion paths so
regressions in string/int/member handling are visible.
## Details
- Ran `PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 .venv/bin/pytest -p
pytest_codspeed.plugin benchmarks/ --codspeed` (36 passed).
- Confirmed mypyc extensions were used by importing from `/tmp` with
`.venv/bin/python` and verifying
`evmspec__mypyc.cpython-313-x86_64-linux-gnu.so` +
`evmspec/_new.cpython-313-x86_64-linux-gnu.so` in site-packages.1 parent 8205377 commit 35e970c
1 file changed
+49
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments