tests/benchmark/benchmark.py
to measure the performance of key operations:
Operation | Duration (seconds) | Notes |
---|---|---|
Plugin Discovery | 0.100 | Discovering and registering 3 built-in plugins |
Initial Build | 3.342 | Building the knowledge graph from scratch (79 nodes, 84 edges) |
Incremental Build | 0.446 | Updating the knowledge graph with new data |
Trace History Query | 0.000109 | Tracing history for a specific line (109 microseconds) |
Operation | Duration (seconds) | Notes |
---|---|---|
Plugin Discovery | 0.087 | Discovering and registering 3 built-in plugins |
Initial Build | 14.300 | Building the knowledge graph from scratch (217 nodes, 474 edges) |
Incremental Build | 0.032 | Updating the knowledge graph with new data |
Trace History Query | 0.000030 | Tracing history for a specific line (30 microseconds) |
Operation | Duration (seconds) | Notes |
---|---|---|
Plugin Discovery | 0.085 | Discovering and registering 3 built-in plugins |
Initial Build | 127.800 | Building the knowledge graph from scratch (2,360 nodes, 3,462 edges) |
Incremental Build | 0.108 | Updating the knowledge graph with new data |
Trace History Query | 0.000038 | Tracing history for a specific line (38 microseconds) |
Operation | Target Duration | Rationale |
---|---|---|
Plugin Discovery | < 0.5 seconds | Fast startup time for CLI and VS Code extension |
Initial Build | < 30 seconds | Acceptable one-time cost for new users |
Incremental Build | < 5 seconds | Fast enough for CI integration |
Trace History Query | < 200ms | Required for responsive VS Code extension |