perf(metrics): vectorize global_efficiency inner loop - #51
Merged
CodSpeed HQ / CodSpeed Performance Analysis
succeeded
Jul 30, 2026 in 0s
Performance Gate Passed
⚠️ Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.
⚡ 4 improved benchmarks
✅ 24 untouched benchmarks
Performance Changes
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | test_network_metric[global_efficiency-dir] |
4.3 ms | 3.1 ms | +42.07% |
| ⚡ | test_network_metric[global_efficiency-undir] |
4.4 ms | 3.1 ms | +41.04% |
| ⚡ | test_ordinal_patterns |
15.9 ms | 11.9 ms | +33.61% |
| ⚡ | test_detrend_method[z_score-p10] |
2.1 ms | 1.6 ms | +30.63% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing perf/vectorize-global-efficiency (592d2fc) with main (875adcd)
Loading