From: Amirouche Boubekki <amirouche.boubekki@gmail.com>
To: Guile User <guile-user@gnu.org>,
Discussion list for the Wikidata project
<Wikidata@lists.wikimedia.org>,
semantic-web <semantic-web@w3.org>
Subject: Re: [ANN] nomunofu v0.1.0
Date: Sun, 22 Dec 2019 20:17:41 +0000 [thread overview]
Message-ID: <CAL7_Mo_JxZjrrXQzE99nKgoZ94mVrbQLMT+15Gb9PwioOFQVkw@mail.gmail.com> (raw)
In-Reply-To: <CAL7_Mo-u0TF28rGmh88cPFF-KSkt0X-T1TUM5h7EnQoybcEvnQ@mail.gmail.com>
Hello all ;-)
I ported the code to Chez Scheme to do an apple-to-apple comparison
between GNU Guile and Chez and took the time to launch a few queries
against Virtuoso available in Ubuntu 18.04 (LTS).
Spoiler: the new code is always faster.
The hard disk is SATA, and the CPU is dubbed: Intel(R) Xeon(R) CPU
E3-1220 V2 @ 3.10GHz
I imported latest-lexeme.nt (6GB) using guile-nomunofu, chez-nomunofu
and Virtuoso:
- Chez takes 40 minutes to import 6GB
- Chez is 3 to 5 times faster than Guile
- Chez is 11% faster than Virtuoso
Regarding query time, Chez is still faster than Virtuoso with or
without cache. The query I am testing is the following:
SELECT ?s ?p ?o
FROM <http://fu>
WHERE {
?s <http://purl.org/dc/terms/language> <http://www.wikidata.org/entity/Q150> .
?s <http://wikiba.se/ontology#lexicalCategory>
<http://www.wikidata.org/entity/Q1084> .
?s <http://www.w3.org/2000/01/rdf-schema#label> ?o
};
Virtuoso first query takes: 1295 msec.
The second query takes: 331 msec.
Then it stabilize around: 200 msec.
chez nomunofu takes around 200ms without cache.
There is still an optimization I can do to speed up nomunofu a little.
Happy hacking!
next prev parent reply other threads:[~2019-12-22 20:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-08 17:52 [ANN] nomunofu v0.1.0 Amirouche Boubekki
[not found] ` <CAL7_Mo_iaGff9qPOq7ic0i3epwd0wR-JKJcRAy_q4et5Lgo=bg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-12-10 9:52 ` Amirouche Boubekki
2019-12-12 14:57 ` Amirouche Boubekki
2019-12-12 15:57 ` tomas
2019-12-16 12:49 ` Amirouche Boubekki
2019-12-22 20:17 ` Amirouche Boubekki [this message]
[not found] ` <CAL7_Mo_JxZjrrXQzE99nKgoZ94mVrbQLMT+15Gb9PwioOFQVkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-12-22 23:36 ` Ted Thibodeau Jr
2019-12-23 8:56 ` [Wikidata] " tomas
2019-12-23 12:34 ` Roel Janssen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAL7_Mo_JxZjrrXQzE99nKgoZ94mVrbQLMT+15Gb9PwioOFQVkw@mail.gmail.com \
--to=amirouche.boubekki@gmail.com \
--cc=Wikidata@lists.wikimedia.org \
--cc=guile-user@gnu.org \
--cc=semantic-web@w3.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).