Skip to content

Move benchmarks to .codeflash/benchmarks/#2059

Open
KRRT7 wants to merge 2 commits intomainfrom
refactor/benchmarks-to-dotcodeflash
Open

Move benchmarks to .codeflash/benchmarks/#2059
KRRT7 wants to merge 2 commits intomainfrom
refactor/benchmarks-to-dotcodeflash

Conversation

@KRRT7
Copy link
Copy Markdown
Collaborator

@KRRT7 KRRT7 commented Apr 10, 2026

Summary

  • Move tests/benchmarks/ to .codeflash/benchmarks/ as the new standard location for benchmark tests
  • Auto-discover .codeflash/benchmarks/ in codeflash compare and --benchmark mode when benchmarks-root is not explicitly configured
  • Backwards compatible: users with existing benchmarks-root config are unaffected, docs unchanged

Changes

  • git mv tests/benchmarks/ .codeflash/benchmarks/ — 7 benchmark files moved
  • cmd_compare.py: fallback to .codeflash/benchmarks/ when benchmarks_root not in config
  • cli.py: same fallback in --benchmark mode

Verified

  • 9/9 init tests pass (including backwards compat test for existing benchmarks-root)
  • 12/12 benchmarks collected from new location
  • 3963 main tests collected (no benchmark leakage)

@KRRT7 KRRT7 force-pushed the refactor/benchmarks-to-dotcodeflash branch 2 times, most recently from 2abaa19 to efac516 Compare April 10, 2026 13:38
Move codeflash's own benchmarks to .codeflash/benchmarks/. Add
auto-discovery of .codeflash/benchmarks/ in codeflash compare and
benchmark mode -- when benchmarks-root is not explicitly configured,
the CLI checks for .codeflash/benchmarks/ before erroring.

Backwards compatible: users with existing benchmarks-root config
are unaffected. Docs continue to show tests/benchmarks as the
example path.
@KRRT7 KRRT7 force-pushed the refactor/benchmarks-to-dotcodeflash branch from efac516 to ec14860 Compare April 10, 2026 13:39
… lint errors

Add .resolve() to TemporaryDirectory path to expand Windows 8.3 short
paths (e.g. RUNNER~1) to canonical long form, fixing test_pickle_patcher
failures on Windows CI. Also add missing return type annotations and
noqa suppressions for benchmark test file.
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.

1 participant