The metadata serialization format affects the API performance.
This is less pronounced in the latest arche-core versions but still noticeable.
If you just want to know the best solutions:
application/n-triples. It’s definitely the fastest to
serialize on the ARCHE side and most probably the fastest to parse on
your application side (with the only exception of JS where
application/ld+json is probably the fastest to parse).text/turtle.A few tests were performed on a copy of the ARCHE production instance containing:
text/turtle is the
most time consuming (roughly 50% more than other formats) and
application/n-triples is the fastest serialization
format.application/ld+json which is
the slowest for small triples count (with the current ARCHE production
instance settings below 1000 triples). This is because in such a case
the result is reshaped to have a more compact structure while for larger
triples count just a streaming JSON-LD serializer is used.Please note the y scales of plots below use different scale for each format.
application/n-triples and speed of
text/turtleapplication/ld+json and application/rdf+xml at
the cost of slight performance degradation of
application/n-triples and speed of
text/turtle