Skip to content

Instantly share code, notes, and snippets.

@rubensworks
Created July 3, 2019 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubensworks/9eaaee548f647be15e98dea2b7d27586 to your computer and use it in GitHub Desktop.
Save rubensworks/9eaaee548f647be15e98dea2b7d27586 to your computer and use it in GitHub Desktop.

Generated with https://github.com/rubensworks/rdfa-streaming-parser.js/tree/master/perf

Small file

(Input from https://github.com/rdfa/rdfa.github.io/tree/master/test-suite)

rdfa-streaming-parser

  • Parsing file /Users/kroeser/Documents/Development/rdfa-streaming-parser.js/perf/0006.xhtml: 12.920ms
  • Quads parsed: 2
  • Memory usage: 24MB

jsdom + greenturtle

  • Parsing file /Users/kroeser/Documents/Development/rdfa-streaming-parser.js/perf/0006.xhtml: 38.995ms
  • Quads parsed: 3 (incorrect)
  • Memory usage: 62MB

Medium file

(Input from https://github.com/rdfa/rdfa.github.io/tree/master/test-suite)

rdfa-streaming-parser

  • Parsing file /Users/kroeser/Documents/Development/rdfa-streaming-parser.js/perf/0295.xhtml: 90.617ms
  • Quads parsed: 489
  • Memory usage: 31MB

jsdom + greenturtle

  • Parsing file /Users/kroeser/Documents/Development/rdfa-streaming-parser.js/perf/0295.xhtml: 231.519ms
  • Quads parsed: 458 (incorrect)
  • Memory usage: 74MB

Large file

(Duplicated contents of 0295 20 times)

rdfa-streaming-parser

  • Parsing file /Users/kroeser/Documents/Development/rdfa-streaming-parser.js/perf/0295-large.xhtml: 1186.705ms
  • Quads parsed: 10269
  • Memory usage: 70MB

jsdom + greenturtle

  • Parsing file /Users/kroeser/Documents/Development/rdfa-streaming-parser.js/perf/0295-large.xhtml: 1675.101ms
  • Quads parsed: 9598 (incorrect)
  • Memory usage: 162MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment