Hi Antonio, my experience is very different - quite comparable performance, except for very specific cases, e.g. massive use of fn:idref(). Furthermore, the performance of BaseX is often so stupendous that an improvement by an order of magnitude (not to mention two) appears to me very difficult to imagine. It makes me suspicious that one of your scripts is .py, the other .sh. I believe the scripts used for comparing should be absolutely analogous.
Kind regards,Hans-Jürgen Am Freitag, 19. April 2024 um 10:46:00 MESZ hat ANDRADE Antonio <antonio.andr...@ofb.gouv.fr> Folgendes geschrieben: <!--#yiv5963625419 filtered {}#yiv5963625419 filtered {}#yiv5963625419 p.yiv5963625419MsoNormal, #yiv5963625419 li.yiv5963625419MsoNormal, #yiv5963625419 div.yiv5963625419MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv5963625419 a:link, #yiv5963625419 span.yiv5963625419MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv5963625419 a:visited, #yiv5963625419 span.yiv5963625419MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv5963625419 span.yiv5963625419EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv5963625419 .yiv5963625419MsoChpDefault {}#yiv5963625419 filtered {}#yiv5963625419 div.yiv5963625419WordSection1 {}--> 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 ? Thanks in advance, Antonio Andrade Date engineer