feat: add --verbose flag to benchmark CLI for per-file metric output …#27
Merged
feat: add --verbose flag to benchmark CLI for per-file metric output …#27
Conversation
…23) ## Summary Fixes #23 — adds a `--verbose` flag to the `benchmark` subcommand so metric details are visible during a run without needing to open the JSON. ## Usage ```bash python vibebench.py benchmark --tasks datasets/prompts.json --verbose ``` ## Example Output (verbose mode) ``` [CHATGPT] Analyzing TASK-001_chatgpt.py... Complexity : 1.8 Docstring Cover : 0.0% Bad Practices : 0 Execution Time : 0.060s Status : Success ``` ## Changes **`vibebench.py`** - `VibeBench.__init__` accepts new `verbose=False` parameter - New private `_print_verbose(record)` method formats and prints per-file metrics with safe `N/A` fallbacks for null values - `run_benchmark` calls `_print_verbose` after each file when verbose - `benchmark` subparser gains `--verbose` / `action="store_true"` flag Default (non-verbose) output is completely unchanged. ## Notes This PR is stacked on top of the #24 schema fixes — both are included in this `vibebench.py`. Merge #24 first if you are cherry-picking. Closes #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…(#23)
Summary
Fixes #23 — adds a
--verboseflag to thebenchmarksubcommand so metric details are visible during a run without needing to open the JSON.Usage
Example Output (verbose mode)
Changes
vibebench.pyVibeBench.__init__accepts newverbose=Falseparameter_print_verbose(record)method formats and prints per-file metrics with safeN/Afallbacks for null valuesrun_benchmarkcalls_print_verboseafter each file when verbosebenchmarksubparser gains--verbose/action="store_true"flagDefault (non-verbose) output is completely unchanged.
Notes
This PR is stacked on top of the #24 schema fixes — both are included in this
vibebench.py. Merge #24 first if you are cherry-picking.Closes #23