Update Mermaid charts with actual test data

- Updated compiled languages chart with real performance data
- Updated JIT-compiled languages chart with actual measurements
- Updated interpreted languages chart with test results
- Updated slowest languages chart with real data
- All charts now reflect actual benchmark results from 100 decimal tests
This commit is contained in:
Ein Anderssono
2026-04-23 01:37:01 +02:00
parent 3ef7736b1d
commit 9795bd6e96
2 changed files with 41 additions and 17 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/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']}")