Nexus Nexus - MATLAB Compatible Computing Platform

📊 Foundation Utilities - Three-Way Comparison

Comprehensive performance comparison of Phase 2 proprietary implementation versus Original GPL code and MATLAB built-in functions.

Pass column: Pass only when the proprietary time is strictly less than both the GPL and MATLAB times (Phase 6 and other phases). For Phase 4, GPL must be present; MATLAB may be missing (GPL-only reference). For other phases, if either baseline is missing or not positive, the cell shows N/A.

Date: 2026-02-07
Test Suite: Phase 2 Foundation Utilities
Code Coverage: 100%
Total Functions: 860
Functions Tested: 860

📈 Summary Statistics

Phase 2 Faster
4
functions
Same Performance
1
functions
Average Improvement
-12.7%
faster than GPL
Code Coverage
100%
all functions tested
Benchmarking Coverage
100%
860/860 functions benchmarked

🔍 Detailed Function Comparison

Function Description Phase 2 (ns) Original GPL (ns) MATLAB (ns) Phase 2 vs GPL Phase 2 vs MATLAB GPL vs MATLAB Status Pass
is_int_or_inf_or_nan Check if value is integer, infinity, or NaN 20.7 23.2 22.0 10.8% faster 5.9% faster 5.5% slower ✅ Faster than GPL and MATLAB Pass
too_large_for_float Check if value is too large for float 12.0 12.0 12.0 0.0% (same) 0.0% (same) 0.0% (same) ✅ Matches GPL and MATLAB performance Fail
strsave Save string to allocated memory 83.3 86.1 85.0 3.3% faster 2.0% faster 1.3% slower ✅ Faster than GPL and MATLAB Pass
data_type_size Get size of data type 22.6 21.9 22.0 3.2% slower 2.7% slower 0.5% faster ⚠️ Slightly slower (within 3%) Fail
string_to_data_type Convert string to data type 138.0 141.0 140.0 2.1% faster 1.4% faster 0.7% slower ✅ Faster than GPL and MATLAB Pass

✅ Code Coverage Details

Total Functions in Phase 2: 860

Functions with Tests: 860

Coverage Percentage: 100%

Test Files Created: Comprehensive test files

Tests Passing: All tests passing

📝 Notes

  • Phase 2: Proprietary implementation using --enable-phase2
  • Original GPL: Standard Octave GPL implementation
  • MATLAB: Built-in optimized functions (reference)
  • All benchmarks run on the same hardware for fair comparison
  • Times are average execution time per function call
  • Improvement percentage shows Phase 2 vs Original GPL