Skip to content

feat(export): Benchmark Performance Telemetry & Race Data Exporter (CSV / JSON) #87

Description

@Sanan507

Overview

Add an export feature allowing users, researchers, and students to download benchmark race data (execution times, operation counts, winner metrics, array size, algorithm list) as CSV or JSON files for offline analysis and lab reports.

Implementation Details & File Reference

  • Export Utility: Create frontend/src/utils/exportTelemetry.ts with exportRaceToCSV(raceData) and exportRaceToJSON(raceData).
    • Format data into clean tabular columns (Algorithm, Operations, Execution Time (ms), Swaps, Winner, Dataset Config).
    • Use Blob and URL.createObjectURL to trigger instant browser file downloads.
  • UI Action Buttons: Add "Export CSV" and "Export JSON" buttons in the Performance Comparison panel (frontend/src/components/AlgorithmComparisonCenter.tsx).

Definition of Done

  • Clicking "Export CSV" downloads a structured .csv file containing complete race metrics.
  • Clicking "Export JSON" downloads a formatted .json file containing raw telemetry.
  • Supported across Sorting, Searching, and Pathfinding race results.

Skill Level

Medium — data formatting, Blob creation, and browser download trigger implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions