|
PerformanceBenchmarks
some wsdl parser tests
Phase-Support WSDL Parser BenchmarksAs WSDL is a complex XML document, parsing it can be useful to estimate overall performance. Test conditions:
Web services tested are AFIP (Argentina' IRS):
Enviroment:
ResultsPySimpleSOAP seems to be as fast as the other compared python solutions (sometimes faster), without tunning (code is not optimized by now) nor external C libraries. Note: some libraries failed our tests:
See TestingCompliance for more integration tests. YMMV PySimpleSOAP (1.0.1a)
suds (0.3.9)
soappy (0.11.6 pyxml?)
soaplib (0.8.1 libxml)
szi (2.0.0-rc3)
Sample Source Codefrom pysimplesoap.client import SoapClient
import time
t0 = time.time()
loops = 10
for i in range(loops):
print "loop", i, time.time() -t0
client = SoapClient(wsdl='file:wsaa.wsdl')
client = SoapClient(wsdl='file:wsfe.wsdl')
client = SoapClient(wsdl='file:wsfex.wsdl')
client = SoapClient(wsdl='file:wsctg.wsdl')
client = SoapClient(wsdl='file:wdigdepfiel.wsdl')
t1 = time.time()
print "time elapsed (% i loops): %0.4f sec %0.4f avg" % (loops, t1- t0, (t1-t0)/loops)
|
► Sign in to add a comment