Skip to content
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

Metric Dashboard #253

Draft
wants to merge 7 commits into
base: dev
Choose a base branch
from
Draft

Metric Dashboard #253

wants to merge 7 commits into from

Conversation

ben9809
Copy link
Contributor

@ben9809 ben9809 commented Mar 7, 2025

This pull request introduces several significant changes to the neurobench/benchmarks/benchmark.py file, primarily focusing on enhancing the user interface and improving the benchmark's output presentation. The changes include the addition of the rich library for better console output, the removal of tqdm for progress tracking, and the introduction of a custom progress bar and detailed result display.

Key changes include:

User Interface Enhancements:

  • Added the rich library for improved console output and progress tracking. (pyproject.toml, neurobench/benchmarks/benchmark.py) [1] [2]
  • Implemented a custom progress bar using rich.progress to replace tqdm for more detailed and visually appealing progress updates. (neurobench/benchmarks/benchmark.py)
  • Introduced a detailed results display using rich.table and rich.panel to present benchmark results in a structured and readable format. (neurobench/benchmarks/benchmark.py)

Code Simplification and Cleanup:

  • Removed the unused imports of mkdir and tqdm. (neurobench/benchmarks/benchmark.py)
  • Simplified the to_nir method by conditionally importing export_to_nir based on the snntorch version. (neurobench/benchmarks/benchmark.py)

These changes collectively improve the usability and readability of the benchmark output, making it easier for users to track progress and understand results.

@ben9809 ben9809 changed the base branch from main to dev March 7, 2025 18:08
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.83%. Comparing base (6b7fcd7) to head (e0abc92).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #253   +/-   ##
=======================================
  Coverage   77.83%   77.83%           
=======================================
  Files          43       43           
  Lines         803      803           
  Branches      118      118           
=======================================
  Hits          625      625           
  Misses        132      132           
  Partials       46       46           
Flag Coverage Δ
unittests 77.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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