Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_knowledge_performance

Tests reference — tests/knowledge_graph/test_knowledge_performance.py

Module of tests/knowledge_graph, split out because the directory page would be too large.

Prose pending.

tests/knowledge_graph/test_knowledge_performance.py

source · 32 tests · 478 lines

Tests for Knowledge Graph performance benchmarks.

Covers: knowledge_graph.class_extractor, knowledge_graph.code_parser, knowledge_graph.dependency_analyzer, knowledge_graph.function_extractor, knowledge_graph.history, knowledge_graph.nodes, knowledge_graph.pam_integration, knowledge_graph.portfolio, knowledge_graph.query_engine, knowledge_graph.relationships, knowledge_graph.synchronizer, knowledge_graph.temporal, knowledge_graph.types, knowledge_graph.versioning

Kind Name Line Description
class TestTypeCreationPerformance 88 Benchmark: type instantiation.
method TestTypeCreationPerformance.test_node_creation_1000x 91
method TestTypeCreationPerformance.test_file_node_creation_1000x 98
method TestTypeCreationPerformance.test_class_node_creation_1000x 105
method TestTypeCreationPerformance.test_function_node_creation_1000x 112
method TestTypeCreationPerformance.test_predicate_node_creation_1000x 119
method TestTypeCreationPerformance.test_change_entry_creation_1000x 126
method TestTypeCreationPerformance.test_node_to_dict_1000x 133
class TestCypherConversionPerformance 142 Benchmark: Cypher conversion.
method TestCypherConversionPerformance.test_node_to_cypher_props_1000x 145
method TestCypherConversionPerformance.test_file_node_to_cypher_1000x 153
method TestCypherConversionPerformance.test_class_node_to_cypher_1000x 161
method TestCypherConversionPerformance.test_predicate_node_to_cypher_1000x 169
method TestCypherConversionPerformance.test_rel_cypher_build_1000x 177
class TestParserPerformance 186 Benchmark: code parsing.
method TestParserPerformance.test_parse_python_under_50ms 216
method TestParserPerformance.test_parse_prolog_under_50ms 233
method TestParserPerformance.test_class_extraction_under_10ms 241
method TestParserPerformance.test_function_extraction_under_10ms 253
method TestParserPerformance.test_file_hash_under_1ms 265
class TestDependencyPerformance 274 Benchmark: dependency analysis.
method TestDependencyPerformance.test_import_analysis_under_20ms 286
method TestDependencyPerformance.test_transitive_deps_under_5ms 303
class TestCachePerformance 326 Benchmark: QueryEngine cache operations.
method TestCachePerformance.test_cache_put_get_1000x 329
method TestCachePerformance.test_cache_eviction_performance 339
class TestTemporalPerformance 349 Benchmark: temporal versioning.
method TestTemporalPerformance.test_version_creation_100x 352
method TestTemporalPerformance.test_versioning_manager_100x 361
method TestTemporalPerformance.test_history_recording_1000x 369
class TestPAMPerformance 383 Benchmark: PAM++ operations.
method TestPAMPerformance.test_ownership_1000x 386
method TestPAMPerformance.test_access_check_1000x 394
method TestPAMPerformance.test_delegation_100x 404
class TestPortfolioPerformance 415 Benchmark: portfolio operations.
method TestPortfolioPerformance.test_portfolio_creation_100x 418
method TestPortfolioPerformance.test_project_addition_100x 427
method TestPortfolioPerformance.test_dashboard_generation 437
class TestSyncPerformance 449 Benchmark: file synchronization.
method TestSyncPerformance.test_project_sync_20_files 462
method TestSyncPerformance.test_incremental_sync_skips_unchanged 471