File size: 2,202 Bytes
8c10cf2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | # RQ2 (Agent-Time / LLM-Share Breakdown)
This folder contains the analysis artifacts for **RQ2**: how overall agent runtime is distributed across LLM calls vs. tool/external time, and how this differs across frameworks (A2A / H_A2A / MCP) and models.
## What’s inside
- **Per-task subfolders** (e.g., `BookWriter-*`, `SQLAssistant-*`, `LandingPageGenerator-*`)
- `agent_map.md` / `FRAMEWORK_map.yaml`: agent/tool mapping used for classification.
- `agent_llm_tool_breakdown_by_model.csv`: per-model time/token breakdowns used by the plots.
- `analyze_performance_breakdown*.py`: task-specific aggregation scripts.
- **Aggregated outputs (repo-level for RQ2)**
- `llm_share_summary.csv`: consolidated LLM-share summary table.
- `llm_share_heatmap.pdf`: heatmap visualization of LLM share.
- `model_overhead_bars_a2a.pdf`, `model_overhead_bars_mix.pdf`: model-level overhead bar charts.
- `framework_overhead_ratio_mix_vs_a2a.pdf`: framework overhead ratio comparison.
- **Plotting scripts**
- `aggregate_llm_share.py`: merges per-task outputs into `llm_share_summary.csv`.
- `plot_llm_share_heatmap.py`: generates `llm_share_heatmap.pdf`.
- `plot_model_overhead_bars_a2a.py`, `plot_model_overhead_bars_mix.py`: bar charts.
- `plot_framework_overhead_ratio_mix_vs_a2a.py`: ratio comparison plot.
- `plot_agent_time_share_bars_unified_y_by_series.py`: unified-y time-share plots.
- `plot_total_classified_ecdf.py`: ECDF plots for classified time.
- **Batch plot outputs**
- `z_Agent-Time-UnifiedY/`: exported PDFs for time-share plots.
- `z_ECDF/`: exported PDFs for ECDF plots.
## How to reproduce (typical)
Run from the repository root (or with `RQ2/` as your working directory):
```bash
python aggregate_llm_share.py
python plot_llm_share_heatmap.py
python plot_model_overhead_bars_a2a.py
python plot_model_overhead_bars_mix.py
python plot_framework_overhead_ratio_mix_vs_a2a.py
python plot_agent_time_share_bars_unified_y_by_series.py
python plot_total_classified_ecdf.py
```
## Notes
- Some scripts expect the per-task CSVs to already exist inside each task folder.
- All PDFs/CSVs in this directory are treated as **generated analysis artifacts** for RQ2.
|