mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-25 23:24:03 +00:00
Added benchmark.js performance suite measuring: - GNN correlation matrix construction - Matrix multiplication (original vs optimized) - Object pooling vs direct allocation - Ring buffer vs Array.shift() - Softmax function performance Additional optimizations: - attention-regime-detection.js: Optimized softmax avoids spread operator, uses loop-based max finding and single-pass exp+sum (2x speedup) - gnn-correlation-network.js: Pre-computed statistics for Pearson correlation via precomputeStats() and calculateCorrelationFast() methods. Avoids recomputing mean/std for each pair. Spearman rank also optimized. Benchmark results: - Cache-friendly matmul: 1.7-2.9x speedup - Object pooling: 2.7x speedup - Ring buffer: 12-14x speedup - Optimized softmax: 2x speedup |
||
|---|---|---|
| .. | ||
| atomic-arbitrage.js | ||
| attention-regime-detection.js | ||
| benchmark.js | ||
| gnn-correlation-network.js | ||
| hyperbolic-embeddings.js | ||
| multi-agent-swarm.js | ||
| quantum-portfolio-optimization.js | ||
| reinforcement-learning-agent.js | ||