Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
149 lines (92 sloc) 6.3 KB

Performance Benchmarks

The following diagrams plot the mean value of 5 trials for each data point.

The X-axis units are in Millions of Quads, and correspond to the number of triples/quads fed into the process via stdin.

There are usually two modes for graphy, the default mode with validation enabled for reading, and 'relaxed' mode, which skips validation for faster read speeds.

All Turtle input files are using prefixed names for identifiers when possible.

Memory-intensive tasks were run with the --max-old-space-size=8192 node.js option (e.g., the distinct task). Some charts show an exponential jump in time due to the fact that V8's GC starts aggressively trying to free up memory.

Want to see how other libraries stack up? Feel free to open an issue.

Versions

Table of Contents

  • Count Task -- Count the number of statements in an RDF document.
  • Distinct Task -- Count the distinct number of triples/quads in an RDF document.
  • Convert Task -- Convert an RDF document from one serialization format to another.

Count Task

Count the number of statements in an RDF document.

Test Flavors:

Count Task With N-Triples as input

Input File: Wikidata Data Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for count Task with N-Triples as input Performance Review of memory for count Task with N-Triples as input

Input File: DBpedia "Person Data" Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for count Task with N-Triples as input Performance Review of memory for count Task with N-Triples as input

Count Task With Turtle as input

Input File: Wikidata Data Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for count Task with Turtle as input Performance Review of memory for count Task with Turtle as input

Input File: DBpedia "Person Data" Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for count Task with Turtle as input Performance Review of memory for count Task with Turtle as input

Distinct Task

Count the distinct number of triples/quads in an RDF document.

Test Flavors:

Distinct Task With N-Triples as input

Input File: Wikidata Data Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for distinct Task with N-Triples as input Performance Review of memory for distinct Task with N-Triples as input

Input File: DBpedia "Person Data" Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for distinct Task with N-Triples as input Performance Review of memory for distinct Task with N-Triples as input

Distinct Task With Turtle as input

Input File: Wikidata Data Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for distinct Task with Turtle as input Performance Review of memory for distinct Task with Turtle as input

Input File: DBpedia "Person Data" Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for distinct Task with Turtle as input Performance Review of memory for distinct Task with Turtle as input

Convert Task

Convert an RDF document from one serialization format to another.

Test Flavors:

Convert Task With N-Triples as input => Turtle as output

Input File: Wikidata Data Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for convert Task with N-Triples as input => Turtle as output Performance Review of memory for convert Task with N-Triples as input => Turtle as output

Input File: DBpedia "Person Data" Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for convert Task with N-Triples as input => Turtle as output Performance Review of memory for convert Task with N-Triples as input => Turtle as output

Convert Task With Turtle as input => N-Triples as output

Input File: Wikidata Data Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for convert Task with Turtle as input => N-Triples as output Performance Review of memory for convert Task with Turtle as input => N-Triples as output

Input File: DBpedia "Person Data" Dump

Time Elapsed (s) Memory Usage (MiB)
Performance Review of elapsed for convert Task with Turtle as input => N-Triples as output Performance Review of memory for convert Task with Turtle as input => N-Triples as output
You can’t perform that action at this time.