[threeten-dev] Ser performance
Xueming Shen
xueming.shen at oracle.com
Tue Mar 5 15:41:23 PST 2013
Just tried a non-scientific performance measurement on the proxy pattern
used by the Ser spec/impl, here is the data from the simple benchmark SerTest.java.
It appears the
(1) expected slowdown is obvious on the serialization side, particular in LocalTime
(2) the de-serialization side may be just fine.
http://cr.openjdk.java.net/~sherman/jdk8_threeten/serPerm/
http://cr.openjdk.java.net/~sherman/jdk8_threeten/serPerm/SerTest.java
---------------------Proxy pattern----------------
java SerTest 1000
--------LocalDate--------
serSize=16
Writing: 6655
Reading: 3224
--------LocalTime--------
serSize=17
Writing: 6125
Reading: 2937
--------LocalDateTime--------
serSize=23
Writing: 6188
Reading: 3383
---------------------Simple/direct serialization-------
--------LocalDate--------
serSize=14
Writing: 3418
Reading: 3836
--------LocalTime--------
serSize=13
Writing: 2756
Reading: 2358
--------LocalDateTime--------
serSize=22
Writing: 3266
Reading: 4407
More information about the threeten-dev
mailing list