Skip to content

Commit 2102dbd

Browse files
committed
Merge branch 'dev' of https://github.com/VirtualFlyBrain/VFBquery into dev
2 parents 5c055ac + 43492ee commit 2102dbd

1 file changed

Lines changed: 78 additions & 84 deletions

File tree

performance.md

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

3-
**Test Date:** 2025-11-08 22:57:29 UTC
4-
**Git Commit:** 1af316c8522faac2238ba7330e4661b5c854f35f
3+
**Test Date:** 2025-11-09 09:04:16 UTC
4+
**Git Commit:** 300ce4db2bccc466863132b9bdb0717a26ec3dec
55
**Branch:** dev
6-
**Workflow Run:** [19199264279](https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19199264279)
6+
**Workflow Run:** [19205895777](https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19205895777)
77

88
## Test Overview
99

@@ -74,7 +74,6 @@ This performance test measures the execution time of all implemented VFB queries
7474
- **TermsForPub**: Terms referencing publications
7575
- **TransgeneExpressionHere**: Transgene expression patterns in regions
7676

77-
7877
## Performance Thresholds
7978

8079
- **Fast queries**: < 1 second (SOLR lookups)
@@ -86,15 +85,17 @@ This performance test measures the execution time of all implemented VFB queries
8685

8786
```
8887
test_01_term_info_queries (src.test.test_query_performance.QueryPerformanceTest)
89-
Test term info query performance ... FAIL
88+
Test term info query performance ... ok
9089
test_02_neuron_part_queries (src.test.test_query_performance.QueryPerformanceTest)
9190
Test neuron part overlap queries ... ok
9291
test_03_synaptic_queries (src.test.test_query_performance.QueryPerformanceTest)
9392
Test synaptic terminal queries ... ok
9493
test_04_anatomy_hierarchy_queries (src.test.test_query_performance.QueryPerformanceTest)
95-
Test anatomical hierarchy queries ... FAIL
96-
test_05_new_queries (src.test.test_query_performance.QueryPerformanceTest)
97-
Test newly implemented queries ... FAIL
94+
Test anatomical hierarchy queries ... ok
95+
test_05_tract_lineage_queries (src.test.test_query_performance.QueryPerformanceTest)
96+
Test tract/nerve and lineage clone queries ... ok
97+
test_05b_image_queries (src.test.test_query_performance.QueryPerformanceTest)
98+
Test image and developmental lineage queries ... FAIL
9899
test_06_instance_queries (src.test.test_query_performance.QueryPerformanceTest)
99100
Test instance retrieval queries ... ok
100101
test_07_connectivity_queries (src.test.test_query_performance.QueryPerformanceTest)
@@ -108,61 +109,34 @@ Test expression pattern queries ... ok
108109
test_11_transcriptomics_queries (src.test.test_query_performance.QueryPerformanceTest)
109110
Test scRNAseq transcriptomics queries ... ok
110111
test_12_nblast_queries (src.test.test_query_performance.QueryPerformanceTest)
111-
Test NBLAST similarity queries ... FAIL
112+
Test NBLAST similarity queries ... ok
112113
test_13_dataset_template_queries (src.test.test_query_performance.QueryPerformanceTest)
113114
Test dataset and template queries ... ok
114115
test_14_publication_transgene_queries (src.test.test_query_performance.QueryPerformanceTest)
115116
Test publication and transgene queries ... ok
116117
117118
======================================================================
118-
FAIL: test_01_term_info_queries (src.test.test_query_performance.QueryPerformanceTest)
119-
Test term info query performance
120-
----------------------------------------------------------------------
121-
Traceback (most recent call last):
122-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 116, in test_01_term_info_queries
123-
self.assertLess(duration, self.THRESHOLD_MEDIUM, "term_info query exceeded threshold")
124-
AssertionError: 2257.6184799671173 not less than 3.0 : term_info query exceeded threshold
125-
126-
======================================================================
127-
FAIL: test_04_anatomy_hierarchy_queries (src.test.test_query_performance.QueryPerformanceTest)
128-
Test anatomical hierarchy queries
129-
----------------------------------------------------------------------
130-
Traceback (most recent call last):
131-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 228, in test_04_anatomy_hierarchy_queries
132-
self.assertLess(duration, self.THRESHOLD_SLOW, "SubclassesOf exceeded threshold")
133-
AssertionError: 225.2372817993164 not less than 10.0 : SubclassesOf exceeded threshold
134-
135-
======================================================================
136-
FAIL: test_05_new_queries (src.test.test_query_performance.QueryPerformanceTest)
137-
Test newly implemented queries
119+
FAIL: test_05b_image_queries (src.test.test_query_performance.QueryPerformanceTest)
120+
Test image and developmental lineage queries
138121
----------------------------------------------------------------------
139122
Traceback (most recent call last):
140-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 267, in test_05_new_queries
141-
self.assertLess(duration, self.THRESHOLD_SLOW, "LineageClonesIn exceeded threshold")
142-
AssertionError: 347.09703946113586 not less than 10.0 : LineageClonesIn exceeded threshold
123+
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 288, in test_05b_image_queries
124+
self.assertLess(duration, self.THRESHOLD_SLOW, "ImagesNeurons exceeded threshold")
125+
AssertionError: 576.766303062439 not less than 10.0 : ImagesNeurons exceeded threshold
143126
144127
======================================================================
145128
FAIL: test_08_similarity_queries (src.test.test_query_performance.QueryPerformanceTest)
146129
Test NBLAST similarity queries
147130
----------------------------------------------------------------------
148131
Traceback (most recent call last):
149-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 362, in test_08_similarity_queries
132+
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 373, in test_08_similarity_queries
150133
self.assertLess(duration, self.THRESHOLD_SLOW, "SimilarMorphologyTo exceeded threshold")
151-
AssertionError: 13.684109687805176 not less than 10.0 : SimilarMorphologyTo exceeded threshold
134+
AssertionError: 14.470858335494995 not less than 10.0 : SimilarMorphologyTo exceeded threshold
152135
153-
======================================================================
154-
FAIL: test_12_nblast_queries (src.test.test_query_performance.QueryPerformanceTest)
155-
Test NBLAST similarity queries
156136
----------------------------------------------------------------------
157-
Traceback (most recent call last):
158-
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 504, in test_12_nblast_queries
159-
self.assertLess(duration, self.THRESHOLD_MEDIUM, "SimilarMorphologyTo exceeded threshold")
160-
AssertionError: 3.4450695514678955 not less than 3.0 : SimilarMorphologyTo exceeded threshold
137+
Ran 15 tests in 1699.396s
161138
162-
----------------------------------------------------------------------
163-
Ran 14 tests in 2870.955s
164-
165-
FAILED (failures=5)
139+
FAILED (failures=2)
166140
VFBquery caching enabled: TTL=2160h (90 days), Memory=2048MB
167141
VFBquery functions patched with caching support
168142
VFBquery: Caching enabled by default (3-month TTL, 2GB memory)
@@ -177,102 +151,122 @@ TERM INFO QUERIES
177151
DEBUG: Cache lookup for FBbt_00003748: MISS
178152
Error executing query function get_expression_overlaps_here: get_expression_overlaps_here() got an unexpected keyword argument 'short_form'
179153
Error executing query function get_transgene_expression_here: get_transgene_expression_here() got an unexpected keyword argument 'short_form'
180-
get_term_info (mushroom body): 2257.6185s ✅
154+
get_term_info (mushroom body): 1072.2901s ✅
155+
DEBUG: Cache lookup for VFB_00101567: MISS
156+
Error executing query function get_painted_domains: get_painted_domains() got an unexpected keyword argument 'short_form'
157+
Error executing query function get_all_aligned_images: get_all_aligned_images() got an unexpected keyword argument 'short_form'
158+
Error executing query function get_aligned_datasets: get_aligned_datasets() got an unexpected keyword argument 'short_form'
159+
Error executing query function get_all_datasets: get_all_datasets() got an unexpected keyword argument 'short_form'
160+
get_term_info (individual): 0.2207s ✅
181161
182162
================================================================================
183163
NEURON PART OVERLAP QUERIES
184164
================================================================================
185-
NeuronsPartHere: 1.3546s
165+
NeuronsPartHere: 1.4489s
186166
187167
================================================================================
188168
SYNAPTIC TERMINAL QUERIES
189169
================================================================================
190-
NeuronsSynaptic: 1.1159s
191-
NeuronsPresynapticHere: 0.9019s
192-
NeuronsPostsynapticHere: 0.8207s
193-
NeuronNeuronConnectivity: 0.7213s
170+
NeuronsSynaptic: 1.3345s
171+
NeuronsPresynapticHere: 1.1090s
172+
NeuronsPostsynapticHere: 1.2813s
173+
NeuronNeuronConnectivity: 1.2885s
194174
195175
================================================================================
196176
ANATOMICAL HIERARCHY QUERIES
197177
================================================================================
198-
ComponentsOf: 0.7163s ✅
199-
PartsOf: 1.0573s ✅
200-
SubclassesOf: 225.2373s ✅
178+
ComponentsOf: 1.0157s ✅
179+
PartsOf: 1.1197s ✅
180+
SubclassesOf: 1.1249s ✅
181+
182+
================================================================================
183+
TRACT/NERVE AND LINEAGE QUERIES
184+
================================================================================
185+
NeuronClassesFasciculatingHere: 1.1107s ✅
186+
TractsNervesInnervatingHere: 0.9896s ✅
187+
LineageClonesIn: 0.9610s ✅
201188
202189
================================================================================
203-
NEW QUERIES (2025)
190+
IMAGE AND DEVELOPMENTAL QUERIES
204191
================================================================================
205-
NeuronClassesFasciculatingHere: 0.6355s ✅
206-
TractsNervesInnervatingHere: 2.9361s ✅
207-
LineageClonesIn: 347.0970s ✅
192+
ImagesNeurons: 576.7663s ✅
208193
209194
================================================================================
210195
INSTANCE QUERIES
211196
================================================================================
212-
ListAllAvailableImages: 0.8155s
197+
ListAllAvailableImages: 1.2426s
213198
214199
================================================================================
215200
CONNECTIVITY QUERIES
216201
================================================================================
217-
NeuronNeuronConnectivityQuery: 0.7220s
218-
NeuronRegionConnectivityQuery: 0.7934s
202+
NeuronNeuronConnectivityQuery: 1.1067s
203+
NeuronRegionConnectivityQuery: 0.9945s
219204
220205
================================================================================
221206
SIMILARITY QUERIES (Neo4j NBLAST)
222207
================================================================================
223208
✅ Neo4j connection established
224-
SimilarMorphologyTo: 13.6841s
209+
SimilarMorphologyTo: 14.4709s
225210
226211
================================================================================
227212
NEURON INPUT QUERIES (Neo4j)
228213
================================================================================
229-
NeuronInputsTo: 3.0537s
214+
NeuronInputsTo: 2.8417s
230215
231216
================================================================================
232217
EXPRESSION PATTERN QUERIES (Neo4j)
233218
================================================================================
234-
ExpressionOverlapsHere: 0.8659s
219+
ExpressionOverlapsHere: 1.1854s
235220
└─ Found 3922 total expression patterns, returned 10
236221
237222
================================================================================
238223
TRANSCRIPTOMICS QUERIES (Neo4j scRNAseq)
239224
================================================================================
240-
anatScRNAseqQuery: 0.8878s
225+
anatScRNAseqQuery: 0.9196s
241226
└─ Found 0 total clusters
242-
clusterExpression: 0.7054s
227+
clusterExpression: 1.0517s
243228
└─ Found 0 genes expressed
244-
expressionCluster: 0.6951s
229+
expressionCluster: 1.1928s
245230
└─ Found 0 clusters expressing gene
246-
scRNAdatasetData: 0.6932s
231+
scRNAdatasetData: 0.7854s
247232
└─ Found 0 clusters in dataset
248233
249234
================================================================================
250-
NBLAST SIMILARITY QUERIES (2025)
235+
NBLAST SIMILARITY QUERIES
251236
================================================================================
252-
SimilarMorphologyTo: 3.4451s
237+
SimilarMorphologyTo: 1.4204s
253238
└─ Found 227 NBLAST matches, returned 10
239+
SimilarMorphologyToPartOf: 0.7483s ✅
240+
└─ Found 0 NBLASTexp matches
241+
SimilarMorphologyToPartOfexp: 0.7206s ✅
242+
└─ Found 0 reverse NBLASTexp matches
243+
SimilarMorphologyToNB: 0.7626s ✅
244+
└─ Found 15 NeuronBridge matches, returned 10
245+
SimilarMorphologyToNBexp: 0.9087s ✅
246+
└─ Found 15 NeuronBridge expression matches, returned 10
247+
✅ All NBLAST similarity queries completed
254248
255249
================================================================================
256-
DATASET/TEMPLATE QUERIES (2025)
250+
DATASET/TEMPLATE QUERIES
257251
================================================================================
258-
PaintedDomains: 0.5392s
252+
PaintedDomains: 0.7683s
259253
└─ Found 0 painted domains
260-
DatasetImages: 0.5245s
254+
DatasetImages: 0.9090s
261255
└─ Found 0 images in dataset
262-
AllAlignedImages: 0.6971s
256+
AllAlignedImages: 0.7453s
263257
└─ Found 0 aligned images
264-
AlignedDatasets: 0.6898s
258+
AlignedDatasets: 0.9163s
265259
└─ Found 0 aligned datasets
266-
AllDatasets: 0.9007s
260+
AllDatasets: 0.9809s
267261
└─ Found 115 total datasets, returned 20
268262
✅ All dataset/template queries completed
269263
270264
================================================================================
271-
PUBLICATION/TRANSGENE QUERIES (2025)
265+
PUBLICATION/TRANSGENE QUERIES
272266
================================================================================
273-
TermsForPub: 0.4835s
267+
TermsForPub: 0.7355s
274268
└─ Found 0 terms for publication
275-
TransgeneExpressionHere: 0.5429s
269+
TransgeneExpressionHere: 1.9218s
276270
└─ Found 2339 transgene expressions, returned 10
277271
✅ All publication/transgene queries completed
278272
@@ -285,7 +279,7 @@ test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
285279
Performance test for specific term info queries. ... ok
286280
287281
----------------------------------------------------------------------
288-
Ran 1 test in 1.608s
282+
Ran 1 test in 2.256s
289283
290284
OK
291285
VFBquery caching enabled: TTL=2160h (90 days), Memory=2048MB
@@ -300,9 +294,9 @@ VFBquery: Caching enabled by default (3-month TTL, 2GB memory)
300294
==================================================
301295
Performance Test Results:
302296
==================================================
303-
FBbt_00003748 query took: 0.7949 seconds
304-
VFB_00101567 query took: 0.8125 seconds
305-
Total time for both queries: 1.6074 seconds
297+
FBbt_00003748 query took: 0.9771 seconds
298+
VFB_00101567 query took: 1.2783 seconds
299+
Total time for both queries: 2.2554 seconds
306300
Performance Level: 🟡 Good (1.5-3 seconds)
307301
==================================================
308302
Performance test completed successfully!
@@ -321,4 +315,4 @@ Track performance trends across commits:
321315
- [GitHub Actions History](https://github.com/VirtualFlyBrain/VFBquery/actions/workflows/performance-test.yml)
322316

323317
---
324-
*Last updated: 2025-11-08 22:57:29 UTC*
318+
*Last updated: 2025-11-09 09:04:16 UTC*

0 commit comments

Comments
 (0)