-
Notifications
You must be signed in to change notification settings - Fork 52
Extract benchmark functionality into standalone command #589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
harp-intel
wants to merge
17
commits into
main
Choose a base branch
from
extract-benchmark-command
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
- Create new 'benchmark' command under cmd/benchmark/ - Implement benchmark flags following telemetry command pattern: * --all (default) - run all benchmarks * --speed, --power, --temperature, --frequency, --memory, --numa, --storage - Move benchmark table definitions and processing functions to new command - Move benchmark HTML renderers to new command - Remove benchmark functionality from report command: * Remove --benchmark flag * Remove benchmark table definitions * Remove benchmark data processing functions * Clean up unused imports - Register benchmark command in root command The benchmark command now provides a cleaner separation of concerns, following the same flag pattern as the telemetry command. Usage: perfspect benchmark # Runs all benchmarks perfspect benchmark --speed --power # Runs specific benchmarks perfspect benchmark --target <ip> # Benchmark remote target
- Add --no-summary flag to optionally exclude system summary - Include Brief System Summary table by default (like telemetry command) - System summary provides quick overview of target system configuration - Follows same pattern as telemetry command for consistency The system summary table shows key system information including: - Host name, time, CPU model, microarchitecture, TDP - Sockets, cores, hyperthreading, CPUs, NUMA nodes - Scaling driver/governor, C-states, frequencies - Energy settings, memory, NIC, disk, OS, kernel
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
- Add benchmark command to commands table in README.md - Create new Benchmark Command section with detailed descriptions - Remove benchmark subsection from Report Command documentation - Update copilot-instructions.md to include benchmark command - Document --no-summary flag for excluding system summary The benchmark command is now properly documented as a standalone command rather than a flag within the report command.
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
* rename flame command to flamegraph, accept flame as alias Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * clean up short descriptions Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> --------- Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
- Create new 'benchmark' command under cmd/benchmark/ - Implement benchmark flags following telemetry command pattern: * --all (default) - run all benchmarks * --speed, --power, --temperature, --frequency, --memory, --numa, --storage - Move benchmark table definitions and processing functions to new command - Move benchmark HTML renderers to new command - Remove benchmark functionality from report command: * Remove --benchmark flag * Remove benchmark table definitions * Remove benchmark data processing functions * Clean up unused imports - Register benchmark command in root command The benchmark command now provides a cleaner separation of concerns, following the same flag pattern as the telemetry command. Usage: perfspect benchmark # Runs all benchmarks perfspect benchmark --speed --power # Runs specific benchmarks perfspect benchmark --target <ip> # Benchmark remote target
- Add --no-summary flag to optionally exclude system summary - Include Brief System Summary table by default (like telemetry command) - System summary provides quick overview of target system configuration - Follows same pattern as telemetry command for consistency The system summary table shows key system information including: - Host name, time, CPU model, microarchitecture, TDP - Sockets, cores, hyperthreading, CPUs, NUMA nodes - Scaling driver/governor, C-states, frequencies - Energy settings, memory, NIC, disk, OS, kernel
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
- Add benchmark command to commands table in README.md - Create new Benchmark Command section with detailed descriptions - Remove benchmark subsection from Report Command documentation - Update copilot-instructions.md to include benchmark command - Document --no-summary flag for excluding system summary The benchmark command is now properly documented as a standalone command rather than a flag within the report command.
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
…t into extract-benchmark-command
…sk space requirements Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
… output parsing Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
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.
Summary
This PR extracts the benchmark functionality from the
reportcommand into a new standalonebenchmarkcommand, providing a cleaner separation of concerns and improved user experience.Changes
New Benchmark Command (
cmd/benchmark/)telemetrycommand--speed,--power,--temperature,--frequency,--memory,--numa,--storage)--all(default: true)--no-summary)Files created:
cmd/benchmark/benchmark.go- Main command implementationcmd/benchmark/benchmark_tables.go- Table definitions and data processingcmd/benchmark/benchmark_renderers.go- HTML rendering functionscmd/benchmark/benchmarking.go- Helper functionsUpdated Report Command
--benchmarkflagFiles modified:
cmd/report/report.gocmd/report/report_tables.goOther Changes
cmd/root.goREADME.mdwith new Benchmark Command section.github/copilot-instructions.mdto include benchmark commandUsage
Testing
Breaking Changes
perfspect report --benchmarkwill need to migrate toperfspect benchmark.Benefits