Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

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
You can’t perform that action at this time.