A performance intelligence engine for complex systems
Welcome to Alnoms
Alnoms is a Performance Intelligence Engine that detects performance risks, scalability bottlenecks, and inefficient execution paths before they reach production.
Built by Arprax, It combines static analysis, runtime profiling, and system-level reasoning into a deterministic intelligence engine for engineering teams building high-performance software.
π A Multi-Surface Intelligence Engine
Alnoms integrates seamlessly into your existing engineering workflows. Catch algorithmic regressions (\(O(N^2)\), \(O(N^3)\)) exactly where it makes the most sense for your team:
- π» Local CLI: Deep empirical profiling in your terminal (
pip install alnoms). - π οΈ VS Code Extension: Real-time static analysis and cost diagnostics directly inside your IDE while you type.
- βοΈ GitHub Actions: Automated PR gatekeeping to block inefficient code before it merges.
β‘ Live Performance Lab (Beta)
Test the analyzer directly in your browser using a sandboxed runtime. Paste your Python script below. The Performance Intelligence Engine will audit it in your browser.
Results will appear here...
π§ Core Principles & Status
Alnoms operates on a single design principle: Performance must be explained, not guessed. Every result is deterministic, reproducible, and empirically validated.
- Pattern Detection: Identifies inefficient algorithmic structures in raw code.
- Deterministic Optimization: Applies rule-based transformations instead of heuristics.
- Verifiable Performance: Compares asymptotic complexity and runtime before/after optimization.
System Status: π’ Core Engine: Stable | π’ Profiler: Stable | π‘ Pattern Registry: Expanding | π Live Lab: Beta
πΊοΈ System Overview & Routing
Alnoms bridges the gap between theoretical complexity and real-world execution. Explore the architecture below:
- π Getting Started β Install the library and run your first audit.
- βοΈ Core System β Understand the internal architecture (Analyzer, Decision Engine, and Fixers).
- π§© Pattern Registry β View the catalog of inefficient structures we detect (e.g., Nested Loops, Membership Traps).
- π Verification & Proof β Review our empirical benchmarks, complexity proofs, and case studies.
β‘ Quick Start: Catching a Silent Trap
Let's look at a real-life example. You have a script (slow_script.py) that cross-references data:
"""Inefficient script used for the Alnoms demonstration."""
def slow_membership_sum(arr):
total = 0
for x in arr:
# Intentional O(N^2) membership trap
if x in arr:
total += x
return total
# Required for empirical scaling
def data_gen(n):
return (list(range(n)),)
if __name__ == "__main__":
data = list(range(200))
print(slow_membership_sum(data))
Example Output:
==================================================
βοΈ PERFORMANCE REPORT
==================================================
File: examples/alnoms/scripts/slow_script.py
Timestamp (UTC): 2026-04-20T21:24:34.294600Z
Total Execution Time: 0.0035s
π§ DETECTED INTENT:
Membership test ('in arr') inside loop
π¨ STATIC ANALYSIS (Diagnostics & Suggestions)
--------------------------------------------------
1. β οΈ ISSUE: Membership test ('in arr') inside loop (Function: slow_membership_sum | Line: 7)
π Explanation: Membership checks on lists inside loops are O(N). Convert to a set for O(1) lookups.
π RECOMMENDED OPTIMIZATION: O(N)
ποΈ IMPLEMENTATION: alnoms.dsa.structures.separate_chaining_hash_st
π ACCESS TIER: OSS
β±οΈ Complexity Shift: O(N*M) β O(N + M)
π‘ SUGGESTED FIX:
--- BEFORE ---
| for k in keys:
| if k in items:
| process(k)
--- AFTER ---
| items_set = set(items)
| for k in keys:
| if k in items_set:
| process(k)
β±οΈ DYNAMIC PROFILING (Top Execution Bottlenecks)
--------------------------------------------------
1. slow_membership_sum() -> 7e-05s (2.15%)
π EMPIRICAL SCALING ANALYSIS: slow_membership_sum()
--------------------------------------------------
N | Time (s) | Ratio | Est. Complexity
--------------------------------------------------
50 | 0.00001 | - | Initial Round
100 | 0.00002 | 3.32 | O(N^2)
200 | 0.00008 | 3.91 | O(N^2)
400 | 0.00028 | 3.59 | O(N^2)
βοΈ VERDICT:
β οΈ WARNING: Function operates at O(N^2). May not scale efficiently.
π CONTEXT
--------------------------------------------------
Empirical scaling validates asymptotic behavior under increasing load.
π EXPECTED IMPACT
--------------------------------------------------
For N = 10,000:
β’ O(NΒ²) β ~100,000,000 operations
β’ O(N) β ~10,000 operations
Estimated improvement: 100Γβ1000Γ depending on workload.
π€ CONFIDENCE
--------------------------------------------------
High β static and empirical signals agree.
π AFTER OPTIMIZATION (SIMULATED)
--------------------------------------------------
Expected Complexity: O(N)
Behavior: Linear scaling with stable performance.
Suggested Implementation:
s = set(arr)
for x in arr:
if x in s:
total += x
==================================================
This is algorithmic intelligence, not just profiling.
See how to apply the fix and verify the performance β
π¦ Installation
βΆ Next Steps
Start here:
- β‘ Run a live analysis
- Full walkthrough π Quickstart Guide
- Explore βοΈ System Architecture
- Review π Benchmarks & Proof
π Citation
To cite the Software: See the "Cite this repository" button on our GitHub.
Software: