Hi George,
Some of the scripts can be up to 5000 rows, so they are complex. I currently have a complex script that executes in a medium sized data set in about 15 seconds using Saxon, but never completes with BaseX. It's also the first one I tested, so I'm confused if I'm doing something wrong.
I see! This could easily indicate that Saxon is doing some more optimizations than BaseX.
If you should manage to further isolate the weak spots, feel free to communicate them back to us.
Thanks, Christian