Am 19.04.2024 um 10:45 schrieb ANDRADE Antonio:

Hie,

 

For the purposes of European Water Framework Directive reporting, I compared the performances of the Saxon and BaseX XQuery engines. I observe a performance gap of a factor of 100 to 200 depending on the use case (see functions test_xquery_monitoring() and test_xquery_multischema_2022() in scripts test_saxoncee.py and test_basex.sh available at https://outil-transferts.ofb.fr/?107ae461a144d0b) Can you please help me understand the reasons for such gaps ?

 

I haven't tried to look at your files either but would also say that SaxonC from Python is usually faster than Saxon Java when run from a shell script so some difference you might see is just the advantage of the AOT compiled SaxonC over running a classic Java app from a shell script where JVM start up/warm up is making a single run of code seem always relatively slow.