Skip to content

Commit f5bdc08

Browse files
committed
Update performance test results [skip ci]
1 parent 093a983 commit f5bdc08

1 file changed

Lines changed: 25 additions & 110 deletions

File tree

performance.md

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

3-
**Test Date:** 2025-11-09 03:12:08 UTC
4-
**Git Commit:** 4f601867d3d4b36e634c8f4f6df6340e2674074b
3+
**Test Date:** 2025-11-10 03:14:54 UTC
4+
**Git Commit:** 093a983f213701929365b1c10ab2e620d151c64b
55
**Branch:** main
6-
**Workflow Run:** [19202481605](https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19202481605)
6+
**Workflow Run:** [19219404018](https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19219404018)
77

88
## Test Overview
99

@@ -31,62 +31,7 @@ This performance test measures the execution time of all implemented VFB queries
3131

3232
```
3333
test_01_term_info_queries (src.test.test_query_performance.QueryPerformanceTest)
34-
Test term info query performance ... ERROR: Owlery query failed: HTTPConnectionPool(host='owl.virtualflybrain.org', port=80): Read timed out. (read timeout=120)
35-
Test URL: http://owl.virtualflybrain.org/kbs/vfb/subclasses?object=%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FFBbt_00005106%3E%20and%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FRO_0002110%3E%20some%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FFBbt_00003748%3E
36-
Traceback (most recent call last):
37-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 536, in _make_request
38-
response = conn.getresponse()
39-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connection.py", line 507, in getresponse
40-
httplib_response = super().getresponse()
41-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/http/client.py", line 1348, in getresponse
42-
response.begin()
43-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/http/client.py", line 316, in begin
44-
version, status, reason = self._read_status()
45-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/http/client.py", line 277, in _read_status
46-
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
47-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/socket.py", line 669, in readinto
48-
return self._sock.recv_into(b)
49-
socket.timeout: timed out
50-
51-
The above exception was the direct cause of the following exception:
52-
53-
Traceback (most recent call last):
54-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
55-
resp = conn.urlopen(
56-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
57-
retries = retries.increment(
58-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/retry.py", line 474, in increment
59-
raise reraise(type(error), error, _stacktrace)
60-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/util.py", line 39, in reraise
61-
raise value
62-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
63-
response = self._make_request(
64-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 538, in _make_request
65-
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
66-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 369, in _raise_timeout
67-
raise ReadTimeoutError(
68-
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='owl.virtualflybrain.org', port=80): Read timed out. (read timeout=120)
69-
70-
During handling of the above exception, another exception occurred:
71-
72-
Traceback (most recent call last):
73-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/vfbquery/vfb_queries.py", line 2247, in _owlery_query_to_results
74-
class_ids = vc.vfb.oc.get_subclasses(
75-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/vfbquery/owlery_client.py", line 105, in get_subclasses
76-
response = requests.get(
77-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/api.py", line 73, in get
78-
return request("get", url, params=params, **kwargs)
79-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/api.py", line 59, in request
80-
return session.request(method=method, url=url, **kwargs)
81-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
82-
resp = self.send(prep, **send_kwargs)
83-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
84-
r = adapter.send(request, **kwargs)
85-
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/adapters.py", line 713, in send
86-
raise ReadTimeout(e, request=request)
87-
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='owl.virtualflybrain.org', port=80): Read timed out. (read timeout=120)
88-
Query returned error result for neurons_postsynaptic(FBbt_00003748), clearing cache entry
89-
FAIL
34+
Test term info query performance ... FAIL
9035
test_02_neuron_part_queries (src.test.test_query_performance.QueryPerformanceTest)
9136
Test neuron part overlap queries ... ok
9237
test_03_synaptic_queries (src.test.test_query_performance.QueryPerformanceTest)
@@ -105,10 +50,10 @@ Test term info query performance
10550
Traceback (most recent call last):
10651
File "/home/runner/work/VFBquery/VFBquery/src/test/test_query_performance.py", line 94, in test_01_term_info_queries
10752
self.assertLess(duration, self.THRESHOLD_MEDIUM, "term_info query exceeded threshold")
108-
AssertionError: 225.2647852897644 not less than 3.0 : term_info query exceeded threshold
53+
AssertionError: 17.631397008895874 not less than 3.0 : term_info query exceeded threshold
10954
11055
----------------------------------------------------------------------
111-
Ran 6 tests in 233.725s
56+
Ran 6 tests in 29.451s
11257
11358
FAILED (failures=1)
11459
VFBquery caching enabled: TTL=2160h (90 days), Memory=2048MB
@@ -120,40 +65,39 @@ VFBquery: Caching enabled by default (3-month TTL, 2GB memory)
12065
TERM INFO QUERIES
12166
================================================================================
12267
DEBUG: Cache lookup for FBbt_00003748: MISS
123-
ERROR: Owlery request failed: HTTPConnectionPool(host='owl.virtualflybrain.org', port=80): Read timed out. (read timeout=120)
124-
get_term_info (mushroom body): 225.2648s ✅
68+
get_term_info (mushroom body): 17.6314s ✅
12569
12670
================================================================================
12771
NEURON PART OVERLAP QUERIES
12872
================================================================================
129-
NeuronsPartHere: 1.0097s
73+
NeuronsPartHere: 1.0982s
13074
13175
================================================================================
13276
SYNAPTIC TERMINAL QUERIES
13377
================================================================================
134-
NeuronsSynaptic: 0.7908s
135-
NeuronsPresynapticHere: 0.6522s
136-
NeuronsPostsynapticHere: 0.7603s
78+
NeuronsSynaptic: 1.0791s
79+
NeuronsPresynapticHere: 0.8780s
80+
NeuronsPostsynapticHere: 1.0242s
13781
13882
================================================================================
13983
ANATOMICAL HIERARCHY QUERIES
14084
================================================================================
141-
ComponentsOf: 0.6528s
142-
PartsOf: 0.6505s
143-
SubclassesOf: 0.6324s
85+
ComponentsOf: 0.8908s
86+
PartsOf: 1.3769s
87+
SubclassesOf: 0.8706s
14488
14589
================================================================================
14690
NEW QUERIES (2025)
14791
================================================================================
148-
NeuronClassesFasciculatingHere: 0.6419s
149-
TractsNervesInnervatingHere: 0.7365s
150-
LineageClonesIn: 0.6421s
151-
ImagesNeurons: 0.6419s
92+
NeuronClassesFasciculatingHere: 1.0393s
93+
TractsNervesInnervatingHere: 0.8881s
94+
LineageClonesIn: 0.8939s
95+
ImagesNeurons: 0.8792s
15296
15397
================================================================================
15498
INSTANCE QUERIES
15599
================================================================================
156-
ListAllAvailableImages: 0.6476s
100+
ListAllAvailableImages: 0.9001s
157101
158102
================================================================================
159103
PERFORMANCE TEST SUMMARY
@@ -164,7 +108,7 @@ test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
164108
Performance test for specific term info queries. ... ok
165109
166110
----------------------------------------------------------------------
167-
Ran 1 test in 1.292s
111+
Ran 1 test in 1.785s
168112
169113
OK
170114
VFBquery caching enabled: TTL=2160h (90 days), Memory=2048MB
@@ -179,10 +123,10 @@ VFBquery: Caching enabled by default (3-month TTL, 2GB memory)
179123
==================================================
180124
Performance Test Results:
181125
==================================================
182-
FBbt_00003748 query took: 0.6403 seconds
183-
VFB_00101567 query took: 0.6516 seconds
184-
Total time for both queries: 1.2919 seconds
185-
Performance Level: 🟢 Excellent (< 1.5 seconds)
126+
FBbt_00003748 query took: 0.8927 seconds
127+
VFB_00101567 query took: 0.8925 seconds
128+
Total time for both queries: 1.7851 seconds
129+
Performance Level: 🟡 Good (1.5-3 seconds)
186130
==================================================
187131
Performance test completed successfully!
188132
```
@@ -191,35 +135,6 @@ Performance test completed successfully!
191135

192136
**Test Status**: Performance tests completed
193137

194-
### Test Statistics
195-
196-
- **Total Tests**: 7
197-
- **Passed**: 4 ✅
198-
- **Failed**: 1 ❌
199-
- **Errors**: 2 ⚠️
200-
201-
### Query Performance Details
202-
203-
| Query | Duration | Status |
204-
|-------|----------|--------|
205-
| NeuronsPartHere | 1.0097s | ✅ Pass |
206-
| NeuronsSynaptic | 0.7908s | ✅ Pass |
207-
| NeuronsPresynapticHere | 0.6522s | ✅ Pass |
208-
| NeuronsPostsynapticHere | 0.7603s | ✅ Pass |
209-
| ComponentsOf | 0.6528s | ✅ Pass |
210-
| PartsOf | 0.6505s | ✅ Pass |
211-
| SubclassesOf | 0.6324s | ✅ Pass |
212-
| NeuronClassesFasciculatingHere | 0.6419s | ✅ Pass |
213-
| TractsNervesInnervatingHere | 0.7365s | ✅ Pass |
214-
| LineageClonesIn | 0.6421s | ✅ Pass |
215-
| ListAllAvailableImages | 0.6476s | ✅ Pass |
216-
217-
⚠️ **Result**: Some performance thresholds exceeded or tests failed
218-
219-
Please review the failed tests above. Common causes:
220-
- Network latency to VFB services
221-
- SOLR/Neo4j/Owlery server load
222-
- First-time cache population (expected to be slower)
223138

224139
---
225140

@@ -229,4 +144,4 @@ Track performance trends across commits:
229144
- [GitHub Actions History](https://github.com/VirtualFlyBrain/VFBquery/actions/workflows/performance-test.yml)
230145

231146
---
232-
*Last updated: 2025-11-09 03:12:08 UTC*
147+
*Last updated: 2025-11-10 03:14:54 UTC*

0 commit comments

Comments
 (0)