11# VFBquery Performance Test Results
22
3- ** Test Date:** 2025-11-18 05:34:18 UTC
4- ** Git Commit:** 79b56375c1d2ee9c3a834eec161afe6bc9e8c3cc
3+ ** Test Date:** 2025-11-18 05:43:28 UTC
4+ ** Git Commit:** 1ddf8f61f4b96f0f67f327dd38ed718db221ddc9
55** Branch:** dev
6- ** Workflow Run:** [ 19455345018 ] ( https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19455345018 )
6+ ** Workflow Run:** [ 19455519320 ] ( https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19455519320 )
77
88## Test Overview
99
@@ -119,135 +119,135 @@ TERM INFO QUERIES
119119DEBUG: Checking cache for term_info, term_id=FBbt_00003748, cache_term_id=FBbt_00003748_preview_True, should_cache=True
120120DEBUG: Attempting cache lookup for term_info(FBbt_00003748_preview_True) with full results
121121DEBUG: Cache lookup result: True
122- get_term_info (mushroom body): 2.6784s ✅
122+ get_term_info (mushroom body): 2.9183s ✅
123123DEBUG: Checking cache for term_info, term_id=VFB_00101567, cache_term_id=VFB_00101567_preview_True, should_cache=True
124124DEBUG: Attempting cache lookup for term_info(VFB_00101567_preview_True) with full results
125125DEBUG: Cache lookup result: True
126- get_term_info (individual): 2.0806s ✅
126+ get_term_info (individual): 2.8792s ✅
127127
128128================================================================================
129129NEURON PART OVERLAP QUERIES
130130================================================================================
131131DEBUG: Checking cache for neurons_part_here, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
132132DEBUG: Attempting cache lookup for neurons_part_here(FBbt_00007401) with full results
133133DEBUG: Cache lookup result: True
134- NeuronsPartHere: 2.1887s ✅
134+ NeuronsPartHere: 2.1206s ✅
135135
136136================================================================================
137137SYNAPTIC TERMINAL QUERIES
138138================================================================================
139139DEBUG: Checking cache for neurons_synaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
140140DEBUG: Attempting cache lookup for neurons_synaptic(FBbt_00007401) with full results
141141DEBUG: Cache lookup result: True
142- NeuronsSynaptic: 2.0091s ✅
142+ NeuronsSynaptic: 2.5344s ✅
143143DEBUG: Checking cache for neurons_presynaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
144144DEBUG: Attempting cache lookup for neurons_presynaptic(FBbt_00007401) with full results
145145DEBUG: Cache lookup result: True
146- NeuronsPresynapticHere: 1.6482s ✅
146+ NeuronsPresynapticHere: 2.2726s ✅
147147DEBUG: Checking cache for neurons_postsynaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
148148DEBUG: Attempting cache lookup for neurons_postsynaptic(FBbt_00007401) with full results
149149DEBUG: Cache lookup result: True
150- NeuronsPostsynapticHere: 1.6713s ✅
150+ NeuronsPostsynapticHere: 2.4168s ✅
151151DEBUG: Checking cache for neuron_neuron_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
152152DEBUG: Attempting cache lookup for neuron_neuron_connectivity_query(VFB_jrchk00s) with full results
153153DEBUG: Cache lookup result: True
154- NeuronNeuronConnectivity: 1.6746s ✅
154+ NeuronNeuronConnectivity: 2.2787s ✅
155155
156156================================================================================
157157ANATOMICAL HIERARCHY QUERIES
158158================================================================================
159159DEBUG: Checking cache for components_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
160160DEBUG: Attempting cache lookup for components_of(FBbt_00003748) with full results
161161DEBUG: Cache lookup result: True
162- ComponentsOf: 1.7128s ✅
162+ ComponentsOf: 2.0133s ✅
163163DEBUG: Checking cache for parts_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
164164DEBUG: Attempting cache lookup for parts_of(FBbt_00003748) with full results
165165DEBUG: Cache lookup result: True
166- PartsOf: 1.6442s ✅
166+ PartsOf: 1.9823s ✅
167167DEBUG: Checking cache for subclasses_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
168168DEBUG: Attempting cache lookup for subclasses_of(FBbt_00003748) with full results
169169DEBUG: Cache lookup result: True
170- SubclassesOf: 1.6578s ✅
170+ SubclassesOf: 1.9607s ✅
171171
172172================================================================================
173173TRACT/NERVE AND LINEAGE QUERIES
174174================================================================================
175175DEBUG: Checking cache for neuron_classes_fasciculating_here, term_id=FBbt_00003987, cache_term_id=FBbt_00003987, should_cache=True
176176DEBUG: Attempting cache lookup for neuron_classes_fasciculating_here(FBbt_00003987) with full results
177177DEBUG: Cache lookup result: True
178- NeuronClassesFasciculatingHere: 1.6767s ✅
178+ NeuronClassesFasciculatingHere: 1.9888s ✅
179179DEBUG: Checking cache for tracts_nerves_innervating_here, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
180180DEBUG: Attempting cache lookup for tracts_nerves_innervating_here(FBbt_00007401) with full results
181181DEBUG: Cache lookup result: True
182- TractsNervesInnervatingHere: 1.6851s ✅
182+ TractsNervesInnervatingHere: 1.9912s ✅
183183DEBUG: Checking cache for lineage_clones_in, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
184184DEBUG: Attempting cache lookup for lineage_clones_in(FBbt_00007401) with full results
185185DEBUG: Cache lookup result: True
186- LineageClonesIn: 1.6409s ✅
186+ LineageClonesIn: 2.0070s ✅
187187
188188================================================================================
189189IMAGE AND DEVELOPMENTAL QUERIES
190190================================================================================
191191DEBUG: Checking cache for images_neurons, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
192192DEBUG: Attempting cache lookup for images_neurons(FBbt_00007401) with full results
193193DEBUG: Cache lookup result: True
194- ImagesNeurons: 1.6546s ✅
194+ ImagesNeurons: 1.9815s ✅
195195DEBUG: Checking cache for images_that_develop_from, term_id=FBbt_00001419, cache_term_id=FBbt_00001419, should_cache=True
196196DEBUG: Attempting cache lookup for images_that_develop_from(FBbt_00001419) with full results
197197DEBUG: Cache lookup result: True
198- ImagesThatDevelopFrom: 1.7211s ✅
198+ ImagesThatDevelopFrom: 2.0005s ✅
199199DEBUG: Checking cache for expression_pattern_fragments, term_id=FBtp0000001, cache_term_id=FBtp0000001, should_cache=True
200200DEBUG: Attempting cache lookup for expression_pattern_fragments(FBtp0000001) with full results
201201DEBUG: Cache lookup result: True
202- epFrag: 1.6588s ✅
202+ epFrag: 1.9962s ✅
203203
204204================================================================================
205205INSTANCE QUERIES
206206================================================================================
207207DEBUG: Checking cache for instances, term_id=FBbt_00003982, cache_term_id=FBbt_00003982, should_cache=True
208208DEBUG: Attempting cache lookup for instances(FBbt_00003982) with full results
209209DEBUG: Cache lookup result: True
210- ListAllAvailableImages: 1.6514s ✅
210+ ListAllAvailableImages: 1.9818s ✅
211211
212212================================================================================
213213CONNECTIVITY QUERIES
214214================================================================================
215215DEBUG: Checking cache for neuron_neuron_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
216216DEBUG: Attempting cache lookup for neuron_neuron_connectivity_query(VFB_jrchk00s) with full results
217217DEBUG: Cache lookup result: True
218- NeuronNeuronConnectivityQuery: 1.6855s ✅
218+ NeuronNeuronConnectivityQuery: 1.9807s ✅
219219DEBUG: Checking cache for neuron_region_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
220220DEBUG: Attempting cache lookup for neuron_region_connectivity_query(VFB_jrchk00s) with full results
221221DEBUG: Cache lookup result: True
222- NeuronRegionConnectivityQuery: 1.6768s ✅
222+ NeuronRegionConnectivityQuery: 2.0210s ✅
223223
224224================================================================================
225225SIMILARITY QUERIES (Neo4j NBLAST)
226226================================================================================
227227✅ Neo4j connection established
228- SimilarMorphologyTo: 10.4635s ✅
228+ SimilarMorphologyTo: 10.6665s ✅
229229
230230================================================================================
231231NEURON INPUT QUERIES (Neo4j)
232232================================================================================
233- NeuronInputsTo: 2.7887s ✅
233+ NeuronInputsTo: 3.0466s ✅
234234
235235================================================================================
236236EXPRESSION PATTERN QUERIES (Neo4j)
237237================================================================================
238- ExpressionOverlapsHere: 0.9829s ✅
238+ ExpressionOverlapsHere: 1.1556s ✅
239239 └─ Found 3922 total expression patterns, returned 10
240240
241241================================================================================
242242TRANSCRIPTOMICS QUERIES (Neo4j scRNAseq)
243243================================================================================
244- anatScRNAseqQuery: 0.6916s ✅
244+ anatScRNAseqQuery: 0.9381s ✅
245245 └─ Found 0 total clusters
246- clusterExpression: 0.7119s ✅
246+ clusterExpression: 0.9403s ✅
247247 └─ Found 0 genes expressed
248- expressionCluster: 0.6544s ✅
248+ expressionCluster: 0.8181s ✅
249249 └─ Found 0 clusters expressing gene
250- scRNAdatasetData: 0.6564s ✅
250+ scRNAdatasetData: 0.7578s ✅
251251ok
252252test_12_nblast_queries (src.test.test_query_performance.QueryPerformanceTest)
253253Test NBLAST similarity queries ... ok
@@ -257,47 +257,47 @@ test_14_publication_transgene_queries (src.test.test_query_performance.QueryPerf
257257Test publication and transgene queries ... ok
258258
259259----------------------------------------------------------------------
260- Ran 15 tests in 60.843s
260+ Ran 15 tests in 69.911s
261261
262262OK
263263 └─ Found 0 clusters in dataset
264264
265265================================================================================
266266NBLAST SIMILARITY QUERIES
267267================================================================================
268- SimilarMorphologyTo: 0.9599s ✅
268+ SimilarMorphologyTo: 1.1595s ✅
269269 └─ Found 227 NBLAST matches, returned 10
270- SimilarMorphologyToPartOf: 0.7706s ✅
270+ SimilarMorphologyToPartOf: 0.7496s ✅
271271 └─ Found 0 NBLASTexp matches
272- SimilarMorphologyToPartOfexp: 0.6529s ✅
272+ SimilarMorphologyToPartOfexp: 0.7568s ✅
273273 └─ Found 0 reverse NBLASTexp matches
274- SimilarMorphologyToNB: 0.6337s ✅
274+ SimilarMorphologyToNB: 0.9024s ✅
275275 └─ Found 15 NeuronBridge matches, returned 10
276- SimilarMorphologyToNBexp: 0.6581s ✅
276+ SimilarMorphologyToNBexp: 0.7271s ✅
277277 └─ Found 15 NeuronBridge expression matches, returned 10
278278✅ All NBLAST similarity queries completed
279279
280280================================================================================
281281DATASET/TEMPLATE QUERIES
282282================================================================================
283- PaintedDomains: 0.6873s ✅
283+ PaintedDomains: 0.7915s ✅
284284 └─ Found 0 painted domains
285- DatasetImages: 0.6552s ✅
285+ DatasetImages: 0.7476s ✅
286286 └─ Found 0 images in dataset
287- AllAlignedImages: 0.6416s ✅
287+ AllAlignedImages: 0.7569s ✅
288288 └─ Found 0 aligned images
289- AlignedDatasets: 0.8906s ✅
289+ AlignedDatasets: 1.0724s ✅
290290 └─ Found 0 aligned datasets
291- AllDatasets: 0.9012s ✅
291+ AllDatasets: 0.9878s ✅
292292 └─ Found 115 total datasets, returned 20
293293✅ All dataset/template queries completed
294294
295295================================================================================
296296PUBLICATION/TRANSGENE QUERIES
297297================================================================================
298- TermsForPub: 1.7069s ✅
298+ TermsForPub: 0.7249s ✅
299299 └─ Found 0 terms for publication
300- TransgeneExpressionHere: 0.7152s ✅
300+ TransgeneExpressionHere: 0.8826s ✅
301301 └─ Found 2339 transgene expressions, returned 10
302302✅ All publication/transgene queries completed
303303
@@ -307,25 +307,12 @@ PERFORMANCE TEST SUMMARY
307307All performance tests completed!
308308================================================================================
309309test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
310- Performance test for specific term info queries. ... ERROR
310+ Performance test for specific term info queries. ... ok
311311
312- ======================================================================
313- ERROR: test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
314- Performance test for specific term info queries.
315312----------------------------------------------------------------------
316- Traceback (most recent call last):
317- File "/home/runner/work/VFBquery/VFBquery/src/test/term_info_queries_test.py", line 536, in test_term_info_performance
318- result_1 = vfb.get_term_info('FBbt_00003748')
319- File "/home/runner/work/VFBquery/VFBquery/src/vfbquery/cached_functions.py", line 100, in get_term_info_cached
320- return _original_get_term_info(short_form=short_form, preview=preview)
321- File "/home/runner/work/VFBquery/VFBquery/src/vfbquery/solr_result_cache.py", line 763, in wrapper
322- full_result = func(*args, **full_kwargs)
323- TypeError: get_term_info() got an unexpected keyword argument 'limit'
313+ Ran 1 test in 3.983s
324314
325- ----------------------------------------------------------------------
326- Ran 1 test in 0.807s
327-
328- FAILED (errors=1)
315+ OK
329316VFBquery functions patched with caching support
330317VFBquery: SOLR caching enabled by default (3-month TTL)
331318 Disable with: export VFBQUERY_CACHE_ENABLED=false
@@ -334,8 +321,20 @@ VFBquery: SOLR caching enabled by default (3-month TTL)
334321 Disable with: export VFBQUERY_CACHE_ENABLED=false
335322DEBUG: Checking cache for term_info, term_id=FBbt_00003748, cache_term_id=FBbt_00003748_preview_False, should_cache=True
336323DEBUG: Attempting cache lookup for term_info(FBbt_00003748_preview_False) with full results
337- DEBUG: Cache lookup result: False
338- DEBUG: Executing term_info with limit=-1 for caching
324+ DEBUG: Cache lookup result: True
325+ DEBUG: Checking cache for term_info, term_id=VFB_00101567, cache_term_id=VFB_00101567_preview_False, should_cache=True
326+ DEBUG: Attempting cache lookup for term_info(VFB_00101567_preview_False) with full results
327+ DEBUG: Cache lookup result: True
328+
329+ ==================================================
330+ Performance Test Results:
331+ ==================================================
332+ FBbt_00003748 query took: 1.9984 seconds
333+ VFB_00101567 query took: 1.9844 seconds
334+ Total time for both queries: 3.9828 seconds
335+ Performance Level: 🟠 Acceptable (3-6 seconds)
336+ ==================================================
337+ Performance test completed successfully!
339338```
340339
341340## Summary
@@ -351,4 +350,4 @@ Track performance trends across commits:
351350- [ GitHub Actions History] ( https://github.com/VirtualFlyBrain/VFBquery/actions/workflows/performance-test.yml )
352351
353352---
354- * Last updated: 2025-11-18 05:34:18 UTC*
353+ * Last updated: 2025-11-18 05:43:28 UTC*
0 commit comments