Skip to content
maslovalex edited this page Sep 14, 2010 · 7 revisions

This is a forked repository. It adds few YAML serializers.

Have a look at
            "eishay's jvm-serializers wiki":/eishay/jvm-serializers
            for more information.

PASS

  • yaml/snakeyaml
  • yaml/snakeyaml-optimized
  • yaml/yamlbeans
  • yaml/jyaml

FAIL

  • yaml/jvyaml
  • yaml/jvyamlb

Last two produce

ERROR: "yaml/jvyaml" crashed during reverse transformation.
ERROR: "yaml/jvyamlb" crashed during reverse transformation.

Beware! No optimization done to any of the serializers except SnakeYaml since I know something about it.
Others were used according to information provided by correspondent documentation (web pages).
Feel free to OPTIMIZE any of these, because ALL are slow ;)

Here are some results

./run -pre-warmup \
-include=yaml/snakeyaml,yaml/yamlbeans,yaml/snakeyaml-optimized,yaml/jyaml \
data/media.1.cks
name create ser +same deser +shal +deep total size +dfl
yaml/snakeyaml 211 235917 234770 388725 390145 391940 627857 521 298
yaml/snakeyaml-optimized 211 234917 233292 263621 263693 265875 500792 521 298
yaml/yamlbeans 210 263378 259999 403130 403741 403749 667127 569 277
yaml/jyaml 211 533365 529934 560783 561911 559402 1092767 704 317

It has been done under

OSX 1.6.4, Core 2 Duo 2.66, 4GB 1065 MHz DDR3
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

Clone this wiki locally