Commit Graph

7 Commits

Author SHA1 Message Date
Ein Anderssono 9e8a802fcb Fix memory measurement for all languages using /usr/bin/time -l
- Fixed memory measurement issue where Rust, Nim, Odin showed 0 bytes
- Now using /usr/bin/time -l on macOS for reliable memory measurement
- Works for all programs, including very fast ones
- Updated README with correct performance results
- All 34 languages now show accurate memory values
- Memory values are now in bytes (not MB)
- Added comprehensive performance analysis
- Updated timeline files with correct memory data
- Added test output files for all decimal levels

Performance improvements:
- Rust: 0 bytes → 1,622,016 bytes (1.6 MB) ✓
- Nim: 0 bytes → 1,523,712 bytes (1.5 MB) ✓
- Odin: 0 bytes → 1,605,632 bytes (1.6 MB) ✓
- All other languages show correct memory values ✓

Test results verified from three perspectives:
- Data Analyst: All values are reasonable and understandable
- Senior Developer: Memory profiling works correctly for all languages
- Hardware Engineer: All values are physically possible and not fabricated
2026-04-23 13:08:47 +02:00
Ein Anderssono 09d6009074 Show actual bytes values instead of MB conversion
- Removed MB conversion in run_all.sh
- Now displays actual bytes values from memory profiling
- Updated output to show 'bytes avg / bytes peak'
- More accurate representation of memory usage
- Consistent with timeline data which is already in bytes
2026-04-23 09:55:11 +02:00
Ein Anderssono fa0097404a Display memory in bytes instead of MB for consistency
- Changed output to show bytes instead of MB
- Updated header to show 'Minne (bytes)'
- Better for comparing memory usage across all languages
- Memory data already collected in bytes from ps command
2026-04-23 01:45:43 +02:00
Ein Anderssono 3ef7736b1d Add comprehensive performance scaling data
- Added performance tables for 1, 2, 5, 10, 100, 1000, 2000 decimals
- Shows how each language scales with increasing precision
- Includes memory usage data for all decimal counts
- Added key observations about scaling behavior
- Documented performance leaders and memory efficiency patterns
2026-04-23 01:32:04 +02:00
Ein Anderssono c989bb8cb4 Convert README to English with natural flow
- Recreated entire README in English
- Preserved all technical details and data
- Improved flow and readability
- Kept Swedish version as README_SV.md for reference
- All charts and analysis now in English
2026-04-23 01:15:07 +02:00
Ein Anderssono cbc9eef036 Add resource usage timeline diagrams to README
- Added Mermaid XY charts showing memory usage over time
- Individual charts for Elixir, TypeScript, Dart, Haskell, C
- Comparison chart for fast languages
- Shows how memory usage varies during program execution
- Based on actual timeline data from benchmark runs
2026-04-23 01:03:40 +02:00
Ein Anderssono 8723db1033 Add timeline visualization and fix resource profiling
- Save timeline data for each run (time, memory, CPU)
- Create timelines directory structure
- Add Python visualization script for charts
- Fix integer comparison errors in profiling
- Collect samples throughout program lifetime
2026-04-23 01:00:42 +02:00