Hi Giuseppe,
as you indicated in your last e-mail (in private), it was the
debugging output that slowed down the execution of the
unparse-text(...) function (the full text strings was added to both
the query optimization info and the query plan). I have introduced a
size limit [1].
Thanks for
Hi Giuseppe,
please note that the evaluation times that are displayed in the GUI
are not too reommendable for serious performance tests. There are
various side effects that influence the result times of single query
executions.
However, you can enter the "SET RUNS ..." command in the command
Hi Christian,
I confirm that the command you use always outputs very similar time results,
even when you manually repeat it for 3 or 4 times, i.e., running it without
using "-r". However, if you run (manually) for a few times each of the queries
from the GUI, I get differences (total time from
Hi Giuseppe,
I did some tests on command-line:
basex -v -z -r100 "parse-json(unparsed-text('example.json'))"
basex -v -z -r100 "parse-json(file:read-text('example.json'))"
basex -v -z -r100 "json-doc('example.json')"
I tested the calls with a small and a large file (10 KB, 1.5 MB), and
Hi Christian,
The latter option. I just opened a file and run the same query repeatedly. It
is not an in-depth comparison at all, but the times shown in the Query Info
were clearly different (even if just ms).
Best,
Giuseppe
Universität Leipzig
Institute of Computer Science, Digital
Hi Giuseppe,
The semantics of the used functions are slightly different, but I
guess the differences in terms of performance should be rather
marginal. Just in case: Have you have done some in-depth comparisons
that I could have a look at? Did you work with large input files, or
did you run the
Hi,
I have noticed different speeds when running the following functions (from
slowest to fastest):
parse-json(unparsed-text('example.txt'))
json-doc("example.txt")
parse-json(file:read-text('example.txt'))
similarly for documents on the web:
parse-doc('http://example.com/text')
7 matches
Mail list logo