Performance

71 views
Skip to first unread message

Dănuţ

unread,
Jan 15, 2011, 8:12:39 AM1/15/11
to igbinary development list
hi

I've been looking for binary serialization for php thinking someone
should have done it. To my surprise this project is the only one I
could find. I compiled the latest revision against latest reviusion of
php 5.3 and performed some tests to see the difference between php
serialize and igbinary_serialize.

Yes, it's output is smaller but it takes more time to process. It's
actually about 100 times slower than php's serialize.

Pierre Joye

unread,
Jan 15, 2011, 2:23:23 PM1/15/11
to igbi...@googlegroups.com
hi,

On Sat, Jan 15, 2011 at 2:12 PM, Dănuţ <danut....@gmail.com> wrote:

> Yes, it's output is smaller but it takes more time to process. It's
> actually about 100 times slower than php's serialize.

I'm not sure about your results, the compression is actually much
faster. Latest tests have been done with APC, using igbinary instead
of php's serialize. A significant gain has been seen.

Mind to share the scripts you use for testing? Or the way you did the tests?

Cheers,


--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

Teddy

unread,
Jan 15, 2011, 3:18:08 PM1/15/11
to igbinary development list
Hello!

On Jan 15, 3:12 pm, Dănuţ <danut.anto...@gmail.com> wrote:
> Yes, it's output is smaller but it takes more time to process. It's
> actually about 100 times slower than php's serialize.

It's all about the data. If it contains lots of strings, then igbinary
will turn out slower. In such cases you turn off duplicate string
checking. I suggest you benchmark using data as real as possible.

Afterward, if possible, share your test setup so we can make-it-go-
faster. :)
Reply all
Reply to author
Forward
0 new messages