Skip to content

Commit 8b105f4

Browse files
committed
2 parents 6ad05a4 + b3e6760 commit 8b105f4

1 file changed

Lines changed: 69 additions & 102 deletions

File tree

performance.md

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

3-
**Test Date:** 2026-02-04 07:03:47 UTC
4-
**Git Commit:** 7461c9421b5df86b0ef8c43cddb97e807b5ba9eb
3+
**Test Date:** 2026-02-04 11:37:48 UTC
4+
**Git Commit:** 86cf4bcdaf86394d96ee813859d4a1df4a2a2465
55
**Branch:** main
6-
**Workflow Run:** [21661464463](https://github.com/VirtualFlyBrain/VFBquery/actions/runs/21661464463)
6+
**Workflow Run:** [21669905617](https://github.com/VirtualFlyBrain/VFBquery/actions/runs/21669905617)
77

88
## Test Overview
99

@@ -99,71 +99,26 @@ Test image and developmental lineage queries ... ok
9999
test_06_instance_queries (src.test.test_query_performance.QueryPerformanceTest)
100100
Test instance retrieval queries ... ok
101101
test_07_connectivity_queries (src.test.test_query_performance.QueryPerformanceTest)
102-
Test neuron connectivity queries ... FAIL
102+
Test neuron connectivity queries ... ok
103103
test_08_similarity_queries (src.test.test_query_performance.QueryPerformanceTest)
104104
Test NBLAST similarity queries ... ok
105105
test_09_neuron_input_queries (src.test.test_query_performance.QueryPerformanceTest)
106-
Test neuron input/synapse queries ... FAIL
106+
Test neuron input/synapse queries ... ok
107107
test_10_expression_queries (src.test.test_query_performance.QueryPerformanceTest)
108108
Test expression pattern queries ... ok
109109
test_11_transcriptomics_queries (src.test.test_query_performance.QueryPerformanceTest)
110110
Test scRNAseq transcriptomics queries ... ok
111111
test_12_nblast_queries (src.test.test_query_performance.QueryPerformanceTest)
112-
Test NBLAST similarity queries ... FAIL
112+
Test NBLAST similarity queries ... ok
113113
test_13_dataset_template_queries (src.test.test_query_performance.QueryPerformanceTest)
114-
Test dataset and template queries ... FAIL
114+
Test dataset and template queries ... ok
115115
test_14_publication_transgene_queries (src.test.test_query_performance.QueryPerformanceTest)
116-
Test publication and transgene queries ... FAIL
116+
Test publication and transgene queries ... ok
117117
118-
======================================================================
119-
FAIL: test_07_connectivity_queries (src.test.test_query_performance.QueryPerformanceTest)
120-
Test neuron connectivity queries
121-
----------------------------------------------------------------------
122-
Traceback (most recent call last):
123-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 339, in test_07_connectivity_queries
124-
self.assertLess(duration, self.THRESHOLD_SLOW, "NeuronNeuronConnectivityQuery exceeded threshold")
125-
AssertionError: 15.474886417388916 not less than 15.0 : NeuronNeuronConnectivityQuery exceeded threshold
126-
127-
======================================================================
128-
FAIL: test_09_neuron_input_queries (src.test.test_query_performance.QueryPerformanceTest)
129-
Test neuron input/synapse queries
130-
----------------------------------------------------------------------
131-
Traceback (most recent call last):
132-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 386, in test_09_neuron_input_queries
133-
self.assertLess(duration, self.THRESHOLD_SLOW, "NeuronInputsTo exceeded threshold")
134-
AssertionError: 271.8876049518585 not less than 15.0 : NeuronInputsTo exceeded threshold
135-
136-
======================================================================
137-
FAIL: test_12_nblast_queries (src.test.test_query_performance.QueryPerformanceTest)
138-
Test NBLAST similarity queries
139-
----------------------------------------------------------------------
140-
Traceback (most recent call last):
141-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 529, in test_12_nblast_queries
142-
self.assertLess(duration, self.THRESHOLD_SLOW, "SimilarMorphologyTo exceeded threshold")
143-
AssertionError: 134.34544587135315 not less than 15.0 : SimilarMorphologyTo exceeded threshold
144-
145-
======================================================================
146-
FAIL: test_13_dataset_template_queries (src.test.test_query_performance.QueryPerformanceTest)
147-
Test dataset and template queries
148-
----------------------------------------------------------------------
149-
Traceback (most recent call last):
150-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 620, in test_13_dataset_template_queries
151-
self.assertLess(duration, self.THRESHOLD_MEDIUM, "PaintedDomains exceeded threshold")
152-
AssertionError: 135.21769070625305 not less than 3.0 : PaintedDomains exceeded threshold
153-
154-
======================================================================
155-
FAIL: test_14_publication_transgene_queries (src.test.test_query_performance.QueryPerformanceTest)
156-
Test publication and transgene queries
157118
----------------------------------------------------------------------
158-
Traceback (most recent call last):
159-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 719, in test_14_publication_transgene_queries
160-
self.assertLess(duration, self.THRESHOLD_MEDIUM, "TermsForPub exceeded threshold")
161-
AssertionError: 7.965057611465454 not less than 3.0 : TermsForPub exceeded threshold
119+
Ran 15 tests in 60.838s
162120
163-
----------------------------------------------------------------------
164-
Ran 15 tests in 1175.088s
165-
166-
FAILED (failures=5)
121+
OK
167122
VFBquery functions patched with caching support
168123
VFBquery: SOLR caching enabled by default (3-month TTL)
169124
Disable with: export VFBQUERY_CACHE_ENABLED=false
@@ -173,134 +128,146 @@ VFBquery: SOLR caching enabled by default (3-month TTL)
173128
================================================================================
174129
TERM INFO QUERIES
175130
================================================================================
176-
get_term_info (mushroom body): 12.3094s
177-
get_term_info (individual): 14.3020s
131+
get_term_info (mushroom body): 1.9360s
132+
get_term_info (individual): 1.7359s
178133
179134
================================================================================
180135
NEURON PART OVERLAP QUERIES
181136
================================================================================
182-
NeuronsPartHere: 9.2128s
137+
NeuronsPartHere: 1.9209s
183138
184139
================================================================================
185140
SYNAPTIC TERMINAL QUERIES
186141
================================================================================
187-
NeuronsSynaptic: 16.4876s
188-
NeuronsPresynapticHere: 10.8258s
189-
NeuronsPostsynapticHere: 10.8720s
190-
NeuronNeuronConnectivity: 3.5042s
142+
NeuronsSynaptic: 1.9275s
143+
NeuronsPresynapticHere: 1.6546s
144+
NeuronsPostsynapticHere: 1.6173s
145+
NeuronNeuronConnectivity: 1.4120s
191146
192147
================================================================================
193148
ANATOMICAL HIERARCHY QUERIES
194149
================================================================================
195-
ComponentsOf: 10.7604s
196-
PartsOf: 13.4751s
197-
SubclassesOf: 3.6152s
150+
ComponentsOf: 1.3883s
151+
PartsOf: 1.3828s
152+
SubclassesOf: 1.3963s
198153
199154
================================================================================
200155
TRACT/NERVE AND LINEAGE QUERIES
201156
================================================================================
202-
NeuronClassesFasciculatingHere: 5.8635s
203-
TractsNervesInnervatingHere: 9.1916s
204-
LineageClonesIn: 13.5476s
157+
NeuronClassesFasciculatingHere: 1.5019s
158+
TractsNervesInnervatingHere: 1.3931s
159+
LineageClonesIn: 1.3967s
205160
206161
================================================================================
207162
IMAGE AND DEVELOPMENTAL QUERIES
208163
================================================================================
209-
ImagesNeurons: 11.6006s
210-
ImagesThatDevelopFrom: 6.5156s
211-
epFrag: 13.6673s
164+
ImagesNeurons: 2.3912s
165+
ImagesThatDevelopFrom: 1.4619s
166+
epFrag: 1.4099s
212167
213168
================================================================================
214169
INSTANCE QUERIES
215170
================================================================================
216-
ListAllAvailableImages: 6.5015s
171+
ListAllAvailableImages: 1.4019s
217172
218173
================================================================================
219174
CONNECTIVITY QUERIES
220175
================================================================================
221-
NeuronNeuronConnectivityQuery: 15.4749s ✅
176+
NeuronNeuronConnectivityQuery: 1.3977s ✅
177+
NeuronRegionConnectivityQuery: 1.3976s ✅
222178
223179
================================================================================
224180
SIMILARITY QUERIES (Neo4j NBLAST)
225181
================================================================================
226-
SimilarMorphologyTo: 0.7910s
182+
SimilarMorphologyTo: 0.7424s
227183
228184
================================================================================
229185
NEURON INPUT QUERIES (Neo4j)
230186
================================================================================
231-
NeuronInputsTo: 271.8876s
187+
NeuronInputsTo: 2.8306s
232188
233189
================================================================================
234190
EXPRESSION PATTERN QUERIES (Neo4j)
235191
================================================================================
236-
ExpressionOverlapsHere: 3.3127s
192+
ExpressionOverlapsHere: 1.0273s
237193
└─ Found 3922 total expression patterns, returned 10
238194
239195
================================================================================
240196
TRANSCRIPTOMICS QUERIES (Neo4j scRNAseq)
241197
================================================================================
242-
anatScRNAseqQuery: 0.9126s
198+
anatScRNAseqQuery: 0.6945s
243199
└─ Found 0 total clusters
244-
clusterExpression: 134.2936s
200+
clusterExpression: 0.6877s
245201
└─ Found 0 genes expressed
246-
clusterExpression: Skipped (test data may not exist): 134.2936291694641 not less than 15.0 : clusterExpression exceeded threshold
247-
expressionCluster: 135.1741s ✅
202+
expressionCluster: 0.6807s ✅
248203
└─ Found 0 clusters expressing gene
249-
expressionCluster: Skipped (test data may not exist): 135.1741271018982 not less than 15.0 : expressionCluster exceeded threshold
250-
scRNAdatasetData: 0.6091s ✅
204+
scRNAdatasetData: 0.6953s ✅
251205
└─ Found 0 clusters in dataset
252206
253207
================================================================================
254208
NBLAST SIMILARITY QUERIES
255209
================================================================================
256-
SimilarMorphologyTo: 134.3454s
210+
SimilarMorphologyTo: 1.5180s
257211
└─ Found 215 NBLAST matches, returned 10
212+
SimilarMorphologyToPartOf: 0.5647s ✅
213+
└─ Found 0 NBLASTexp matches
214+
SimilarMorphologyToPartOfexp: 0.6548s ✅
215+
└─ Found 0 reverse NBLASTexp matches
216+
SimilarMorphologyToNB: 0.6688s ✅
217+
└─ Found 15 NeuronBridge matches, returned 10
218+
SimilarMorphologyToNBexp: 0.6943s ✅
219+
└─ Found 15 NeuronBridge expression matches, returned 10
220+
✅ All NBLAST similarity queries completed
258221
259222
================================================================================
260223
DATASET/TEMPLATE QUERIES
261224
================================================================================
262-
PaintedDomains: 135.2177s
225+
PaintedDomains: 1.2873s
263226
└─ Found 0 painted domains
227+
DatasetImages: 0.6786s ✅
228+
└─ Found 0 images in dataset
229+
AllAlignedImages: 0.5746s ✅
230+
└─ Found 0 aligned images
231+
AlignedDatasets: 1.4466s ✅
232+
└─ Found 0 aligned datasets
233+
AllDatasets: 0.8414s ✅
234+
└─ Found 116 total datasets, returned 20
235+
✅ All dataset/template queries completed
264236
265237
================================================================================
266238
PUBLICATION/TRANSGENE QUERIES
267239
================================================================================
268-
TermsForPub: 7.9651s
240+
TermsForPub: 0.7029s
269241
└─ Found 0 terms for publication
242+
TransgeneExpressionHere: 1.3573s ✅
243+
└─ Found 2346 transgene expressions, returned 10
244+
✅ All publication/transgene queries completed
270245
271246
================================================================================
272247
PERFORMANCE TEST SUMMARY
273248
================================================================================
274249
All performance tests completed!
275250
================================================================================
276251
test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
277-
Performance test for specific term info queries. ... FAIL
278-
279-
======================================================================
280-
FAIL: test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
281-
Performance test for specific term info queries.
282-
----------------------------------------------------------------------
283-
Traceback (most recent call last):
284-
File "/home/runner/work/VFBquery/VFBquery/src/test/term_info_queries_test.py", line 592, in test_term_info_performance
285-
self.assertLess(duration_2, max_single_query_time,
286-
AssertionError: 15.804726600646973 not less than 10.0 : VFB_00101567 query took 15.8047s, exceeding 10.0s threshold
252+
Performance test for specific term info queries. ... ok
287253
288254
----------------------------------------------------------------------
289-
Ran 1 test in 19.593s
255+
Ran 1 test in 3.907s
290256
291-
FAILED (failures=1)
257+
OK
292258
VFBquery functions patched with caching support
293259
VFBquery: SOLR caching enabled by default (3-month TTL)
294260
Disable with: export VFBQUERY_CACHE_ENABLED=false
295261
296262
==================================================
297263
Performance Test Results:
298264
==================================================
299-
FBbt_00003748 query took: 3.7878 seconds
300-
VFB_00101567 query took: 15.8047 seconds
301-
Total time for both queries: 19.5925 seconds
302-
Performance Level: 🔴 Slow (> 6 seconds)
265+
FBbt_00003748 query took: 2.4822 seconds
266+
VFB_00101567 query took: 1.4235 seconds
267+
Total time for both queries: 3.9057 seconds
268+
Performance Level: 🟠 Acceptable (3-6 seconds)
303269
==================================================
270+
Performance test completed successfully!
304271
```
305272

306273
## Summary
@@ -316,4 +283,4 @@ Track performance trends across commits:
316283
- [GitHub Actions History](https://github.com/VirtualFlyBrain/VFBquery/actions/workflows/performance-test.yml)
317284

318285
---
319-
*Last updated: 2026-02-04 07:03:47 UTC*
286+
*Last updated: 2026-02-04 11:37:48 UTC*

0 commit comments

Comments
 (0)