#!/usr/bin/env python3 import csv # Read performance data and create summary data = {} with open('performance_data.csv', 'r') as f: reader = csv.reader(f) next(reader) # Skip header for row in reader: if len(row) >= 5 and row[1] and row[1] not in ['SUCCESS', 'Brainfuck', 'Ruby'] and not row[1].startswith('3.'): decimals = row[0] language = row[1] time = row[2] memory = row[3] if decimals not in data: data[decimals] = [] data[decimals].append({'lang': language, 'time': time, 'mem': memory}) # Print summary for 100 decimals if '100' in data: print("=== 100 decimals ===") for entry in data['100'][:15]: print(f"{entry['lang']}: {entry['time']}ms, {entry['mem']}")