Skip to content

📊✨ Add Table Report and CSV Analysis#23

Open
apierr wants to merge 2 commits intomainfrom
feature/table-report-csv-analysis
Open

📊✨ Add Table Report and CSV Analysis#23
apierr wants to merge 2 commits intomainfrom
feature/table-report-csv-analysis

Conversation

@apierr
Copy link
Member

@apierr apierr commented Dec 18, 2025

📊 Add Table Report & CSV Analysis

This PR brings powerful functionalities for generating table reports and performing CSV file analysis to streamline data insights.

💡 Key Features:

  • 📥 Efficient parsing and summarization of CSV data
  • 🗂️ Generation of structured, easy-to-read table reports
  • ⚡ Ready for seamless integration with analytics pipelines
Table 1: Performance Comparison Between Autoscaling Configurations

+-------------------+-------------------------+------------+--------+
| Configuration     | Metric                  | Value      | Unit   |
+===================+=========================+============+========+
| maxpods=2         | Total Requests          | X,XXX      | req    |
|                   | Successful Requests     | X,XXX      | req    |
|                   | Success Rate            | XX.XX      | %      |
|                   | Mean Latency            | XX.XX±X.XX | ms     |
|                   | Median Latency          | XX.XX      | ms     |
|                   | P95 Latency             | XX.XX      | ms     |
|                   | P99 Latency             | XX.XX      | ms     |
|                   | Max Latency             | XX.XX      | ms     |
|                   | Mean Requests in Flight | XX.XX      | req    |
|                   | Max Concurrent Requests | XX         | req    |
|                   | Throughput              | XXX.XX     | req/s  |
+-------------------+-------------------------+------------+--------+
| maxpods=5         | Total Requests          | X,XXX      | req    |
|                   | Successful Requests     | X,XXX      | req    |
|                   | Success Rate            | XX.XX      | %      |
|                   | Mean Latency            | XX.XX±X.XX | ms     |
|                   | Median Latency          | XX.XX      | ms     |
|                   | P95 Latency             | XX.XX      | ms     |
|                   | P99 Latency             | XX.XX      | ms     |
|                   | Max Latency             | XX.XX      | ms     |
|                   | Mean Requests in Flight | XX.XX      | req    |
|                   | Max Concurrent Requests | XX         | req    |
|                   | Throughput              | XXX.XX     | req/s  |
+-------------------+-------------------------+------------+--------+

Add modular script to generate LaTeX performance comparison tables from
simulation CSV files following SOLID/DRY principles.

New files:
- analytics/reports/generate_performance_comparison_table.py: CLI entry point
- analytics/utils/table_generator.py: orchestrates table generation
- analytics/utils/metrics_calculator.py: calculates performance metrics
- analytics/utils/latex_formatter.py: formats data as LaTeX tables

Modified files:
- analytics/utils/cli_utils.py: add setup_logging() function
- analytics/utils/file_utils.py: add validation utilities
- docs/SCRIPTS.md: update documentation

Features:
- Calculates key metrics (latency, throughput, success rate, percentiles)
- Proper LaTeX escaping for special characters (%, ±)
- All modules under 80 LOC for maintainability
- Reusable utilities for future reports

Usage:
  python -m analytics.reports.generate_performance_comparison_table     --input file1.csv file2.csv --output table.tex
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