Test Date: 2026-04-18 04:27:07 UTC Git Commit: 6356da9408698988d012dc191ff7cf921c692904 Branch: main Workflow Run: 24596839000
This performance test measures the execution time of all implemented VFB queries organized by functionality:
- Term Info: Comprehensive term information retrieval with preview data
- NeuronsPartHere: Neurons with parts overlapping anatomical regions
- NeuronsSynaptic: Neurons with synapses in a region
- NeuronsPresynapticHere: Neurons with presynaptic terminals in a region
- NeuronsPostsynapticHere: Neurons with postsynaptic terminals in a region
- ComponentsOf: Anatomical components of a structure
- PartsOf: Parts of an anatomical structure
- SubclassesOf: Subclasses of anatomical terms (can be very slow for complex terms)
- NeuronClassesFasciculatingHere: Neurons fasciculating with tracts
- TractsNervesInnervatingHere: Tracts/nerves innervating neuropils
- LineageClonesIn: Lineage clones in neuropils (complex OWL reasoning)
- ImagesNeurons: Neuron images in anatomical regions
- ImagesThatDevelopFrom: Developmental lineage images
- epFrag: Expression pattern fragments
- ListAllAvailableImages: All available images for a term
- NeuronNeuronConnectivity: Neuron-to-neuron connectivity
- NeuronRegionConnectivity: Neuron-to-region connectivity
- NeuronInputsTo: Individual neuron inputs
- SimilarMorphologyTo: NBLAST morphological similarity
- SimilarMorphologyToPartOf: NBLAST to expression patterns (NBLASTexp)
- SimilarMorphologyToPartOfexp: Reverse NBLASTexp
- SimilarMorphologyToNB: NeuronBridge matches
- SimilarMorphologyToNBexp: NeuronBridge for expression patterns
- ExpressionOverlapsHere: Expression patterns overlapping regions
- anatScRNAseqQuery: scRNAseq clusters in anatomy
- clusterExpression: Genes expressed in clusters
- expressionCluster: Clusters expressing genes
- scRNAdatasetData: Cluster data from scRNAseq datasets
- PaintedDomains: Template painted anatomy domains
- DatasetImages: Images in datasets
- AllAlignedImages: Images aligned to templates
- AlignedDatasets: Datasets aligned to templates
- AllDatasets: All available datasets
- TermsForPub: Terms referencing publications
- TransgeneExpressionHere: Transgene expression patterns in regions
- Fast queries: < 1 second (SOLR lookups)
- Medium queries: < 3 seconds (Owlery + SOLR)
- Slow queries: < 10 seconds (Neo4j + complex processing)
- Very Slow queries: < 31 seconds (Complex OWL reasoning - over 30 seconds)
test_01_term_info_queries (src.test.test_query_performance.QueryPerformanceTest)
Test term info query performance ... ok
test_02_neuron_part_queries (src.test.test_query_performance.QueryPerformanceTest)
Test neuron part overlap queries ... ok
test_03_synaptic_queries (src.test.test_query_performance.QueryPerformanceTest)
Test synaptic terminal queries ... ok
test_04_anatomy_hierarchy_queries (src.test.test_query_performance.QueryPerformanceTest)
Test anatomical hierarchy queries ... ok
test_05_tract_lineage_queries (src.test.test_query_performance.QueryPerformanceTest)
Test tract/nerve and lineage clone queries ... ok
test_05b_image_queries (src.test.test_query_performance.QueryPerformanceTest)
Test image and developmental lineage queries ... ok
test_06_instance_queries (src.test.test_query_performance.QueryPerformanceTest)
Test instance retrieval queries ... ok
test_07_connectivity_queries (src.test.test_query_performance.QueryPerformanceTest)
Test neuron connectivity queries ... ok
test_08_similarity_queries (src.test.test_query_performance.QueryPerformanceTest)
Test NBLAST similarity queries ... ok
test_09_neuron_input_queries (src.test.test_query_performance.QueryPerformanceTest)
Test neuron input/synapse queries ... ok
test_10_expression_queries (src.test.test_query_performance.QueryPerformanceTest)
Test expression pattern queries ... ok
test_11_transcriptomics_queries (src.test.test_query_performance.QueryPerformanceTest)
Test scRNAseq transcriptomics queries ... ok
test_12_nblast_queries (src.test.test_query_performance.QueryPerformanceTest)
Test NBLAST similarity queries ... ok
test_13_dataset_template_queries (src.test.test_query_performance.QueryPerformanceTest)
Test dataset and template queries ... FAIL
test_14_publication_transgene_queries (src.test.test_query_performance.QueryPerformanceTest)
Test publication and transgene queries ... ok
======================================================================
FAIL: test_13_dataset_template_queries (src.test.test_query_performance.QueryPerformanceTest)
Test dataset and template queries
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 660, in test_13_dataset_template_queries
self.assertLess(duration, self.THRESHOLD_MEDIUM, "AllAlignedImages exceeded threshold")
AssertionError: 3.997514247894287 not less than 3.0 : AllAlignedImages exceeded threshold
----------------------------------------------------------------------
Ran 15 tests in 66.534s
FAILED (failures=1)
VFBquery functions patched with caching support
VFBquery: SOLR caching enabled by default (3-month TTL)
Disable with: export VFBQUERY_CACHE_ENABLED=false
🔥 SOLR caching enabled for performance tests
================================================================================
TERM INFO QUERIES
================================================================================
get_term_info (mushroom body): 2.1271s ✅
get_term_info (individual): 1.8927s ✅
================================================================================
NEURON PART OVERLAP QUERIES
================================================================================
NeuronsPartHere: 2.2084s ✅
================================================================================
SYNAPTIC TERMINAL QUERIES
================================================================================
NeuronsSynaptic: 2.0990s ✅
NeuronsPresynapticHere: 1.5544s ✅
NeuronsPostsynapticHere: 1.6173s ✅
NeuronNeuronConnectivity: 1.5961s ✅
================================================================================
ANATOMICAL HIERARCHY QUERIES
================================================================================
ComponentsOf: 1.3958s ✅
PartsOf: 1.4260s ✅
SubclassesOf: 1.4159s ✅
================================================================================
TRACT/NERVE AND LINEAGE QUERIES
================================================================================
NeuronClassesFasciculatingHere: 1.4019s ✅
TractsNervesInnervatingHere: 1.3883s ✅
LineageClonesIn: 1.3766s ✅
================================================================================
IMAGE AND DEVELOPMENTAL QUERIES
================================================================================
ImagesNeurons: 2.5359s ✅
ImagesThatDevelopFrom: 1.4499s ✅
epFrag: 1.4056s ✅
================================================================================
INSTANCE QUERIES
================================================================================
ListAllAvailableImages: 1.3978s ✅
================================================================================
CONNECTIVITY QUERIES
================================================================================
NeuronNeuronConnectivityQuery: 1.3994s ✅
NeuronRegionConnectivityQuery: 1.3854s ✅
================================================================================
SIMILARITY QUERIES (Neo4j NBLAST)
================================================================================
SimilarMorphologyTo: 0.8469s ✅
================================================================================
NEURON INPUT QUERIES (Neo4j)
================================================================================
NeuronInputsTo: 4.2249s ✅
================================================================================
EXPRESSION PATTERN QUERIES (Neo4j)
================================================================================
ExpressionOverlapsHere: 1.0312s ✅
└─ Found 3922 total expression patterns, returned 10
================================================================================
TRANSCRIPTOMICS QUERIES (Neo4j scRNAseq)
================================================================================
anatScRNAseqQuery: 0.7034s ✅
└─ Found 57 total clusters, returned 10
clusterExpression: 2.1820s ✅
└─ Found 4588 genes expressed, returned 10
expressionCluster: 0.8483s ✅
└─ Found 9 clusters expressing gene
scRNAdatasetData: 0.7455s ✅
└─ Found 13 clusters in dataset, returned 10
================================================================================
NBLAST SIMILARITY QUERIES
================================================================================
SimilarMorphologyTo: 0.9483s ✅
└─ Found 215 NBLAST matches, returned 10
SimilarMorphologyToPartOf: 0.6230s ✅
└─ Found 0 NBLASTexp matches
SimilarMorphologyToPartOfexp: 0.6177s ✅
└─ Found 0 reverse NBLASTexp matches
SimilarMorphologyToNB: 0.6109s ✅
└─ Found 15 NeuronBridge matches, returned 10
SimilarMorphologyToNBexp: 1.3578s ✅
└─ Found 15 NeuronBridge expression matches, returned 10
✅ All NBLAST similarity queries completed
================================================================================
DATASET/TEMPLATE QUERIES
================================================================================
PaintedDomains: 0.7065s ✅
└─ Found 46 painted domains, returned 10
DatasetImages: 0.6047s ✅
└─ Found 46 images in dataset, returned 10
AllAlignedImages: 3.9975s ✅
└─ Found 527179 aligned images, returned 10
================================================================================
PUBLICATION/TRANSGENE QUERIES
================================================================================
TermsForPub: 0.6926s ✅
└─ Found 2 terms for publication
TransgeneExpressionHere: 2.2933s ✅
└─ Found 2340 transgene expressions, returned 10
✅ All publication/transgene queries completed
================================================================================
PERFORMANCE TEST SUMMARY
================================================================================
All performance tests completed!
================================================================================
test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
Performance test for specific term info queries. ... ok
----------------------------------------------------------------------
Ran 1 test in 2.827s
OK
VFBquery functions patched with caching support
VFBquery: SOLR caching enabled by default (3-month TTL)
Disable with: export VFBQUERY_CACHE_ENABLED=false
==================================================
Performance Test Results:
==================================================
FBbt_00003748 query took: 1.4160 seconds
VFB_00101567 query took: 1.4105 seconds
Total time for both queries: 2.8264 seconds
Performance Level: 🟡 Good (1.5-3 seconds)
==================================================
Performance test completed successfully!
✅ Test Status: Performance tests completed
Track performance trends across commits:
Last updated: 2026-04-18 04:27:07 UTC