Skip to content

Commit fa6a806

Browse files
committed
Update performance test results [skip ci]
1 parent 57e5b72 commit fa6a806

1 file changed

Lines changed: 57 additions & 54 deletions

File tree

performance.md

Lines changed: 57 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# VFBquery Performance Test Results
22

3-
**Test Date:** 2025-11-19 10:40:43 UTC
4-
**Git Commit:** 74074fbf0f7892b2693dad1d66f19516e613868c
3+
**Test Date:** 2025-11-19 10:54:14 UTC
4+
**Git Commit:** 57e5b72eaa13765b0b45b1bd3a815a201c4fa682
55
**Branch:** dev
6-
**Workflow Run:** [19498394303](https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19498394303)
6+
**Workflow Run:** [19498771245](https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19498771245)
77

88
## Test Overview
99

@@ -105,9 +105,7 @@ Test NBLAST similarity queries ... ok
105105
test_09_neuron_input_queries (src.test.test_query_performance.QueryPerformanceTest)
106106
Test neuron input/synapse queries ... ok
107107
test_10_expression_queries (src.test.test_query_performance.QueryPerformanceTest)
108-
Test expression pattern queries ... ok
109-
test_11_transcriptomics_queries (src.test.test_query_performance.QueryPerformanceTest)
110-
Test scRNAseq transcriptomics queries ... VFBquery functions patched with caching support
108+
Test expression pattern queries ... VFBquery functions patched with caching support
111109
VFBquery: SOLR caching enabled by default (3-month TTL)
112110
Disable with: export VFBQUERY_CACHE_ENABLED=false
113111
@@ -119,131 +117,132 @@ TERM INFO QUERIES
119117
DEBUG: Checking cache for term_info, term_id=FBbt_00003748, cache_term_id=FBbt_00003748_preview_True, should_cache=True
120118
DEBUG: Attempting cache lookup for term_info(FBbt_00003748_preview_True) with full results
121119
DEBUG: Cache lookup result: True
122-
get_term_info (mushroom body): 1.9620s
120+
get_term_info (mushroom body): 1.7937s
123121
DEBUG: Checking cache for term_info, term_id=VFB_00101567, cache_term_id=VFB_00101567_preview_True, should_cache=True
124122
DEBUG: Attempting cache lookup for term_info(VFB_00101567_preview_True) with full results
125123
DEBUG: Cache lookup result: True
126-
get_term_info (individual): 1.7901s
124+
get_term_info (individual): 1.4368s
127125
128126
================================================================================
129127
NEURON PART OVERLAP QUERIES
130128
================================================================================
131129
DEBUG: Checking cache for neurons_part_here, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
132130
DEBUG: Attempting cache lookup for neurons_part_here(FBbt_00007401) with full results
133131
DEBUG: Cache lookup result: True
134-
NeuronsPartHere: 1.7101s
132+
NeuronsPartHere: 1.7262s
135133
136134
================================================================================
137135
SYNAPTIC TERMINAL QUERIES
138136
================================================================================
139137
DEBUG: Checking cache for neurons_synaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
140138
DEBUG: Attempting cache lookup for neurons_synaptic(FBbt_00007401) with full results
141139
DEBUG: Cache lookup result: True
142-
NeuronsSynaptic: 1.9023s
140+
NeuronsSynaptic: 1.6153s
143141
DEBUG: Checking cache for neurons_presynaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
144142
DEBUG: Attempting cache lookup for neurons_presynaptic(FBbt_00007401) with full results
145143
DEBUG: Cache lookup result: True
146-
NeuronsPresynapticHere: 1.6235s
144+
NeuronsPresynapticHere: 1.5970s
147145
DEBUG: Checking cache for neurons_postsynaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
148146
DEBUG: Attempting cache lookup for neurons_postsynaptic(FBbt_00007401) with full results
149147
DEBUG: Cache lookup result: True
150-
NeuronsPostsynapticHere: 1.3946s
148+
NeuronsPostsynapticHere: 1.5040s
151149
DEBUG: Checking cache for neuron_neuron_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
152150
DEBUG: Attempting cache lookup for neuron_neuron_connectivity_query(VFB_jrchk00s) with full results
153151
DEBUG: Cache lookup result: True
154-
NeuronNeuronConnectivity: 1.4191s
152+
NeuronNeuronConnectivity: 1.5000s
155153
156154
================================================================================
157155
ANATOMICAL HIERARCHY QUERIES
158156
================================================================================
159157
DEBUG: Checking cache for components_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
160158
DEBUG: Attempting cache lookup for components_of(FBbt_00003748) with full results
161159
DEBUG: Cache lookup result: True
162-
ComponentsOf: 1.8225s
160+
ComponentsOf: 1.4221s
163161
DEBUG: Checking cache for parts_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
164162
DEBUG: Attempting cache lookup for parts_of(FBbt_00003748) with full results
165163
DEBUG: Cache lookup result: True
166-
PartsOf: 1.4264s
164+
PartsOf: 1.3358s
167165
DEBUG: Checking cache for subclasses_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
168166
DEBUG: Attempting cache lookup for subclasses_of(FBbt_00003748) with full results
169167
DEBUG: Cache lookup result: True
170-
SubclassesOf: 1.4346s
168+
SubclassesOf: 1.4250s
171169
172170
================================================================================
173171
TRACT/NERVE AND LINEAGE QUERIES
174172
================================================================================
175173
DEBUG: Checking cache for neuron_classes_fasciculating_here, term_id=FBbt_00003987, cache_term_id=FBbt_00003987, should_cache=True
176174
DEBUG: Attempting cache lookup for neuron_classes_fasciculating_here(FBbt_00003987) with full results
177175
DEBUG: Cache lookup result: True
178-
NeuronClassesFasciculatingHere: 1.4059s
176+
NeuronClassesFasciculatingHere: 1.3019s
179177
DEBUG: Checking cache for tracts_nerves_innervating_here, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
180178
DEBUG: Attempting cache lookup for tracts_nerves_innervating_here(FBbt_00007401) with full results
181179
DEBUG: Cache lookup result: True
182-
TractsNervesInnervatingHere: 1.4100s
180+
TractsNervesInnervatingHere: 1.1806s
183181
DEBUG: Checking cache for lineage_clones_in, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
184182
DEBUG: Attempting cache lookup for lineage_clones_in(FBbt_00007401) with full results
185183
DEBUG: Cache lookup result: True
186-
LineageClonesIn: 1.4125s
184+
LineageClonesIn: 1.2842s
187185
188186
================================================================================
189187
IMAGE AND DEVELOPMENTAL QUERIES
190188
================================================================================
191189
DEBUG: Checking cache for images_neurons, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
192190
DEBUG: Attempting cache lookup for images_neurons(FBbt_00007401) with full results
193191
DEBUG: Cache lookup result: True
194-
ImagesNeurons: 1.4380s
192+
ImagesNeurons: 1.1762s
195193
DEBUG: Checking cache for images_that_develop_from, term_id=FBbt_00001419, cache_term_id=FBbt_00001419, should_cache=True
196194
DEBUG: Attempting cache lookup for images_that_develop_from(FBbt_00001419) with full results
197195
DEBUG: Cache lookup result: True
198-
ImagesThatDevelopFrom: 1.4091s
196+
ImagesThatDevelopFrom: 1.1815s
199197
DEBUG: Checking cache for expression_pattern_fragments, term_id=FBtp0000001, cache_term_id=FBtp0000001, should_cache=True
200198
DEBUG: Attempting cache lookup for expression_pattern_fragments(FBtp0000001) with full results
201199
DEBUG: Cache lookup result: True
202-
epFrag: 1.4042s
200+
epFrag: 1.1892s
203201
204202
================================================================================
205203
INSTANCE QUERIES
206204
================================================================================
207205
DEBUG: Checking cache for instances, term_id=FBbt_00003982, cache_term_id=FBbt_00003982, should_cache=True
208206
DEBUG: Attempting cache lookup for instances(FBbt_00003982) with full results
209207
DEBUG: Cache lookup result: True
210-
ListAllAvailableImages: 1.4145s
208+
ListAllAvailableImages: 1.3442s
211209
212210
================================================================================
213211
CONNECTIVITY QUERIES
214212
================================================================================
215213
DEBUG: Checking cache for neuron_neuron_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
216214
DEBUG: Attempting cache lookup for neuron_neuron_connectivity_query(VFB_jrchk00s) with full results
217215
DEBUG: Cache lookup result: True
218-
NeuronNeuronConnectivityQuery: 1.4109s
216+
NeuronNeuronConnectivityQuery: 1.2796s
219217
DEBUG: Checking cache for neuron_region_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
220218
DEBUG: Attempting cache lookup for neuron_region_connectivity_query(VFB_jrchk00s) with full results
221219
DEBUG: Cache lookup result: True
222-
NeuronRegionConnectivityQuery: 1.4161s
220+
NeuronRegionConnectivityQuery: 1.1847s
223221
224222
================================================================================
225223
SIMILARITY QUERIES (Neo4j NBLAST)
226224
================================================================================
227225
DEBUG: Checking cache for similar_neurons, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s_score_NBLAST_score, should_cache=False
228226
DEBUG: Attempting cache lookup for similar_neurons(VFB_jrchk00s_score_NBLAST_score) with full results
229227
DEBUG: Cache lookup result: False
228+
DEBUG: Executing similar_neurons with original parameters for quick return
230229
✅ Neo4j connection established
231-
SimilarMorphologyTo: 10.8700s ✅
230+
DEBUG: Background: Executing similar_neurons with full results for caching
231+
DEBUG: Started background caching thread for similar_neurons(VFB_jrchk00s)
232+
SimilarMorphologyTo: 10.9210s ✅
232233
233234
================================================================================
234235
NEURON INPUT QUERIES (Neo4j)
235236
================================================================================
236-
NeuronInputsTo: 3.0867s
237+
NeuronInputsTo: 2.7888s
237238
238239
================================================================================
239240
EXPRESSION PATTERN QUERIES (Neo4j)
240241
================================================================================
241-
ExpressionOverlapsHere: 0.8132s ✅
242-
└─ Found 3922 total expression patterns, returned 10
243-
244-
================================================================================
245-
TRANSCRIPTOMICS QUERIES (Neo4j scRNAseq)
242+
ExpressionOverlapsHere: 0.8328s ✅
246243
ok
244+
test_11_transcriptomics_queries (src.test.test_query_performance.QueryPerformanceTest)
245+
Test scRNAseq transcriptomics queries ... ok
247246
test_12_nblast_queries (src.test.test_query_performance.QueryPerformanceTest)
248247
Test NBLAST similarity queries ... ok
249248
test_13_dataset_template_queries (src.test.test_query_performance.QueryPerformanceTest)
@@ -252,55 +251,59 @@ test_14_publication_transgene_queries (src.test.test_query_performance.QueryPerf
252251
Test publication and transgene queries ... ok
253252
254253
----------------------------------------------------------------------
255-
Ran 15 tests in 55.150s
254+
Ran 15 tests in 51.324s
256255
257256
OK
257+
└─ Found 3922 total expression patterns, returned 10
258+
259+
================================================================================
260+
TRANSCRIPTOMICS QUERIES (Neo4j scRNAseq)
258261
================================================================================
259-
anatScRNAseqQuery: 0.8162s
262+
anatScRNAseqQuery: 0.7043s
260263
└─ Found 0 total clusters
261-
clusterExpression: 0.8591s
264+
clusterExpression: 0.5444s
262265
└─ Found 0 genes expressed
263-
expressionCluster: 0.7331s
266+
expressionCluster: 0.6464s
264267
└─ Found 0 clusters expressing gene
265-
scRNAdatasetData: 0.6903s
268+
scRNAdatasetData: 0.6631s
266269
└─ Found 0 clusters in dataset
267270
268271
================================================================================
269272
NBLAST SIMILARITY QUERIES
270273
================================================================================
271-
SimilarMorphologyTo: 0.8700s
274+
SimilarMorphologyTo: 0.9770s
272275
└─ Found 227 NBLAST matches, returned 10
273-
SimilarMorphologyToPartOf: 0.5760s
276+
SimilarMorphologyToPartOf: 0.5772s
274277
└─ Found 0 NBLASTexp matches
275-
SimilarMorphologyToPartOfexp: 0.5947s
278+
SimilarMorphologyToPartOfexp: 0.6056s
276279
└─ Found 0 reverse NBLASTexp matches
277-
SimilarMorphologyToNB: 0.6731s
280+
SimilarMorphologyToNB: 0.6443s
278281
└─ Found 15 NeuronBridge matches, returned 10
279-
SimilarMorphologyToNBexp: 0.5915s
282+
SimilarMorphologyToNBexp: 0.5686s
280283
└─ Found 15 NeuronBridge expression matches, returned 10
281284
✅ All NBLAST similarity queries completed
282285
283286
================================================================================
284287
DATASET/TEMPLATE QUERIES
285288
================================================================================
286-
PaintedDomains: 0.6974s
289+
PaintedDomains: 0.5436s
287290
└─ Found 0 painted domains
288-
DatasetImages: 0.5967s
291+
DatasetImages: 0.6528s
289292
└─ Found 0 images in dataset
290-
AllAlignedImages: 0.5811s
293+
AllAlignedImages: 0.5169s
291294
└─ Found 0 aligned images
292-
AlignedDatasets: 0.8888s
295+
AlignedDatasets: 0.8129s
293296
└─ Found 0 aligned datasets
294-
AllDatasets: 0.8099s
297+
AllDatasets: 0.7484s
295298
└─ Found 115 total datasets, returned 20
296299
✅ All dataset/template queries completed
297300
298301
================================================================================
299302
PUBLICATION/TRANSGENE QUERIES
300303
================================================================================
301-
TermsForPub: 0.5367s
304+
TermsForPub: 0.4696s
302305
└─ Found 0 terms for publication
303-
TransgeneExpressionHere: 0.6555s
306+
TransgeneExpressionHere: 0.6246s
304307
└─ Found 2339 transgene expressions, returned 10
305308
✅ All publication/transgene queries completed
306309
@@ -313,7 +316,7 @@ test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
313316
Performance test for specific term info queries. ... ok
314317
315318
----------------------------------------------------------------------
316-
Ran 1 test in 2.876s
319+
Ran 1 test in 2.455s
317320
318321
OK
319322
VFBquery functions patched with caching support
@@ -329,9 +332,9 @@ DEBUG: Cache lookup result: True
329332
==================================================
330333
Performance Test Results:
331334
==================================================
332-
FBbt_00003748 query took: 1.4177 seconds
333-
VFB_00101567 query took: 1.4579 seconds
334-
Total time for both queries: 2.8756 seconds
335+
FBbt_00003748 query took: 1.2348 seconds
336+
VFB_00101567 query took: 1.2197 seconds
337+
Total time for both queries: 2.4544 seconds
335338
Performance Level: 🟡 Good (1.5-3 seconds)
336339
==================================================
337340
Performance test completed successfully!
@@ -350,4 +353,4 @@ Track performance trends across commits:
350353
- [GitHub Actions History](https://github.com/VirtualFlyBrain/VFBquery/actions/workflows/performance-test.yml)
351354

352355
---
353-
*Last updated: 2025-11-19 10:40:43 UTC*
356+
*Last updated: 2025-11-19 10:54:14 UTC*

0 commit comments

Comments
 (0)