An implementation of RDF.JS Dataset and Store that partly resorts to Web Assembly.
Check wasm-tree-frontend/README.md for proper documentation about "how to use?"
This repository is :
-
A BTreeDataset written in Rust that uses numbers (the backend)
-
A Javascript Wrapper class that tries to be RDF.JS.org compliant (the frontend)
- Users are invited to the read the wasm-tree-frontend documentation.
- Run
./mocha
(npm install mocha -g
if needed) in wasm-tree-frontend.
Compile and package the frontend:
cd wasm-tree-backend/
./buildpkg.py
cd pkg
wasm-pack pack
cd ../../
Package the backend:
cd wasm-tree-frontend
wasm-pack pack
- Finish the Dataset (partial) implementation
The presented bench have been run on my computer (Dell Inspiron 15 5000 with a Intel(R) Core(TM) i5-1035G1 CPU), on nodejs / native rust.
For the tested .match
function calls, we are always faster than Graphy and sophia_wasm and we are sometimes faster than Sophia itself.
The benchmark infrastructure can be found here
MIT License