Closed juankysoriano closed 8 years ago
@blundell santa claus is coming!
:100:
awesome stuff :+1:
simplexml makes a whole lot of objects. Must be autoboxing?
maybe @ouchadam and it also has to create all the objects for reflection so that will add too!
How about a large file as well? The files you guys use are generally a fair bit larger than the two examples benchmarked here
@blundell @amlcurran I have modified the medium.xml
set to parse 100 entry elements.
With this test SEXP is revealing itself as a very fast and efficient XML parser as it parses 2.5x faster than Simple-Framework and 1.7x faster than Jackson.
where are these time taken numbers?
@ouchadam There is a screenshot in the PR description showing numbers. The screenshot is taken from here:
I thought runtime was still objects! oops
:+1: LGTM
yayy :+1: good news!
The following PR includes a
benchmark
module comparing three different XML parsers:The benchmark is performed for two different sets of data,
small.xml
andmedium.xml
.The results of the benchmarking gets special relevance by analysing the
medium
data set. Our benchmarking shows that SEXP is performing faster than it's competitors:1.7x faster than Jackson 2.5x faster than Simple-Framework,
Further SEXP is way more efficient in terms of memory allocation, which could be a more than reasonable argument to make use of it in your mobile applications.
NOTE: The benchmarking has been performing using Caliper; Google’s open-source framework for writing, running and viewing the results of Java Microbenchmarks. We understand our tests have been ran on a JVM and this could influence the results vs Dalvik. In the future we will be also running an Android benchmark.