Show HN: JSONPath Benchmark in Java (SJF4J vs. Jayway)

  • Posted 9 hours ago by hannyu
  • 1 points
I ran a JMH benchmark comparing JSONPath performance in Java.

Libraries: - SJF4J - Jayway JsonPath

Workloads: - query on JsonNode - query on Map/List object graphs

Main result: - ~2x faster on typical queries - up to 7x faster on Map/List

One interesting takeaway is that performance differs a lot depending on whether you run on JsonNode vs native object graphs.

Full write-up: https://dev.to/hannyu/sjf4j-vs-jayway-jsonpath-up-to-7x-fast...

1 comments

    Loading..