[logback-dev] Protobuf
Thorbjoern Ravn Andersen
ravn at runjva.com
Wed Mar 18 22:57:08 CET 2009
Maarten Bosteels skrev:
> Hi Ceki,
>
> Keep in mind that I still have to double check my
> LoggingEvent-to-protobuf converter.
>
> Serializing the corpus with different formats:
> java serialization => 16 MB (16108602)
> protobuf => 33 MB (34385867 bytes)
> protobuf + gzip => 9.9 MB (10354646 bytes)
> protbuf + deflater => 12 MB (12006206 bytes)
>
> speed:
>
> java serialization: 4330 ms
> protobuf 928 ms
> protobuf + gzip 3146 ms
> protobuf + deflater 1883 ms
>
> So I would choose for protobuf + deflater : 25% smaller than java
> serilaization and twice as fast.
>
> Deflater means using java.util.zip.Deflater.BEST_SPEED
Very interesting. Even with 100 Mbit speeds the deflater is faster than
shipping the raw bytes. Please make it optional though (perhaps making
the deflater level configurable and 0 meaning leave alone).
--
Thorbjørn Ravn Andersen "...plus... Tubular Bells!"
More information about the logback-dev
mailing list