perfsonar-dev - Lookup Service Performance Tests (2) - eXist HTTP
Subject: perfsonar development work
List archive
- From: Maciej Glowiak <>
- To: Roman Lapacz <>, Loukik Kudarimoti <>, Vedrin Jeliazkov <>, Jeff Boote <>, Martin Swany <>, Jason Zurawski <>
- Cc:
- Subject: Lookup Service Performance Tests (2) - eXist HTTP
- Date: Wed, 12 Jul 2006 16:42:13 +0200
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
- Organization: Poznan Supercomputing and Networking Center
Hi,
I made some additional tests for LS query/lookup and tested such functionality with new HTTP access to eXist DB.
The only change in the code was invocation of StorageManager (one line change) in LSLookupAction class
Results are promising:
1)
QUERY: data(/nmwg:store/nmwg:metadata/@id)
RESULTS: 572 results took 29,346 output bytes
| first | next |
| query | (approx) |
-----------------------|--------|----------|
xmldb xquery time | 490ms | 410ms |
-----------------------|--------|----------|
HTTP xquery time | 161ms | 72ms |
2)
QUERY: /nmwg:store/nmwg:metadata
RESULTS: 572 results took 416,872 output bytes
| first | next |
| query | (approx) |
-----------------------|--------|----------|
xmldb xquery time | 1970ms | 1730ms |
-----------------------|--------|----------|
HTTP xquery time | 838ms | 580s |
That's not all. I mentioned in my previous e-mail, that establishing XML:DB eXist connectivity takes about 600 ms, which is unnecessary in HTTP access (because we don't use XML:DB at all).
Of course it (StorageManager for XML:DB) is set up only once at the beginning, so it won't influence on longer-working services, but it's still some time saving.
For very small amount of returned data (e.g. one line) XML:DB was faster. But in both cases times were very small (like 20 ms for XML:DB versus 55 ms for HTTP). It was because for HTTP access the connection is always establishing before querying the database (this time for localhost was about 50ms). But 20 vs 50 ms is not the same as 1700 for XML:DB versus 600ms for HTTP...
Maciej
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 http://monstera.man.poznan.pl/ ||
====================================================================
- Lookup Service Performance Tests (2) - eXist HTTP, Maciej Glowiak, 07/12/2006
Archive powered by MHonArc 2.6.16.