Some early Avro benchmarks

Avro is my current project. It’s a slightly different take on data serialization.

Most data serialization systems, like Thrift and Protocol Buffers, rely on code generation, which can be awkward with dynamic languages and datasets. For example, many folks write MapReduce programs in languages like Pig and Python, and generate datasets whose schema is determined by the script that generates them. One of the goals for Avro is to permit such applications to achieve high performance without forcing them to run external compilers.

A few early Avro benchmarks are now in. A month ago, Johan Oskarsson (of Last.fm) ran his serialization size benchmark using Avro. And today, Sharad Agarwal (my Avro collaborator) ran an existing java serialization benchmark using Avro, and the initial results look decent. Curiously, Avro’s generic (no code generation) and specific (generated classes) APIs diverged significantly and unexpectedly despite sharing much of their implementation. This suggests that both might be easily improved.

About these ads

Tags: , , ,

5 Responses to “Some early Avro benchmarks”

  1. Anne Says:

    Is a benchark more like a loanshark or an aardvark?

  2. Doug Cutting Says:

    Typo fixed. Thanks, Anne!

  3. Inductive Bias » Large Scalability - Papers and implementations Says:

    [...] Protocol Buffers, Thrift, Avro, more traditional: Hessian, Java serialization, early benchmarks [...]

  4. Ron Says:

    Hi,
    Can you please point me to some sample code on how to use Avro? The quick start here http://github.com/phunt/avro-rpc-quickstart is not much.

    I’m trying to use Avro to define messages, schema, etc. and serialize from one side and deserialize on the other side. I don’t want to use the provided HTTP and raw socket RPC mechanism, is it possible to get the serialized data as a byte stream? Possibly a byte[] ?

    Thanks

  5. James Abley Says:

    I enjoyed the video of the tech talk recently given at Digg. In it, you answered a question (41:04) about not dynamically generating Java classes at runtime. Have you considered asm or similar to see if that might be useful?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

Join 33 other followers

%d bloggers like this: