Performance benchmarks comparing Neutron and Python implementations with modern TUI output and output validation.
The benchmark suite runs identical algorithms in both Neutron and Python, comparing their execution times with a beautiful, color-coded interface. Output validation ensures both languages produce identical results.
╔════════════════════════════════╗
║ Neutron Benchmark Suite v2.0 ║
╚════════════════════════════════╝
Neutron: ./neutron
Python: Python 3.13.7
Benchmarking: Algorithms
Fibonacci Python: 8.059s Neutron: 0.052s Neutron 155.03x faster
Prime Numbers Python: 0.112s Neutron: 0.061s Neutron 1.84x faster
Matrix Operations Python: 0.223s Neutron: 0.048s Neutron 4.62x faster
Sorting Algorithms Python: 0.175s Neutron: 0.053s Neutron 3.26x faster
Benchmarking: Math Operations
Mathematical Functions Python: 0.107s Neutron: 0.026s Neutron 4.05x faster
Benchmarking: String Operations
String Manipulation Python: 0.121s Neutron: 0.066s Neutron 1.82x faster
Benchmarking: Loop Performance
Loop Operations Python: 0.147s Neutron: 0.175s Python 1.18x faster
════ BENCHMARK SUMMARY ═══
Total Benchmarks: 7
Neutron Faster: 6
Python Faster: 1
Neutron Win Rate: 85.7%
🎉 All benchmarks completed successfully! 🎉
All benchmarks include output validation to ensure correctness:
./run_benchmark.sh
The benchmark runner provides:
Built binary in project root or build/ directory
Python 3.7+ with bc utility for calculations
Linux, macOS, or MSYS2 on Windows