SourceForge.net Logo Faster Java Serialization

Copyright (C) 2006 by Leonardo "Bubble" Mesquita

Overview | Documentation | Project page | Downloads | FAQ | Benchmarks

Frequently Asked Questions

Benchmarks

Back to FAQ

The test is located in class com.bubble.serializer.benchmark.MultipleTest. This class, along with the test objects in package com.bubble.serializer.objects.*, can be found in the project's SVN repository.

The test was run on the following platform:

HardwareAMD Athlon(tm)XP 2200+ 1.8GHz
OSMicrosoft Windows XP
RAM480MB
JVM1.4.2_12 Sun Microsystems Inc.
The results:
Testing with class com.bubble.serializer.objects.PrimitivePojo
Number of runs: 10
Number of objects per run: 2000
Total Java serialize time: 188ms (20000 objects)
Total Bubble serialize time: 125ms (20000 objects)
Total Light serialize time: 47ms (20000 objects)
Avg Java serialize time: 0.00940ms/object
Avg Bubble serialize time: 0.00625ms/object
Avg Light serialize time: 0.00235ms/object
Total Java deserialize time: 204ms (20000 objects)
Total Bubble deserialize time: 406ms (20000 objects)
Total Light deserialize time: 315ms (20000 objects)
Avg Java deserialize time: 0.01020ms/object
Avg Bubble deserialize time: 0.02030ms/object
Avg Light deserialize time: 0.01575ms/object
Testing with class com.bubble.serializer.objects.ExtremePojo
Number of runs: 10
Number of objects per run: 2000
Total Java serialize time: 234ms (20000 objects)
Total Bubble serialize time: 142ms (20000 objects)
Total Light serialize time: 78ms (20000 objects)
Avg Java serialize time: 0.0117ms/object
Avg Bubble serialize time: 0.0071ms/object
Avg Light serialize time: 0.0039ms/object
Total Java deserialize time: 687ms (20000 objects)
Total Bubble deserialize time: 672ms (20000 objects)
Total Light deserialize time: 438ms (20000 objects)
Avg Java deserialize time: 0.03435ms/object
Avg Bubble deserialize time: 0.03360ms/object
Avg Light deserialize time: 0.02190ms/object
Testing with class com.bubble.serializer.objects.ObjectPojo
Number of runs: 10
Number of objects per run: 2000
Total Java serialize time: 264ms (20000 objects)
Total Bubble serialize time: 157ms (20000 objects)
Total Light serialize time: 62ms (20000 objects)
Avg Java serialize time: 0.01320ms/object
Avg Bubble serialize time: 0.00785ms/object
Avg Light serialize time: 0.00310ms/object
Total Java deserialize time: 327ms (20000 objects)
Total Bubble deserialize time: 297ms (20000 objects)
Total Light deserialize time: 203ms (20000 objects)
Avg Java deserialize time: 0.01635ms/object
Avg Bubble deserialize time: 0.01485ms/object
Avg Light deserialize time: 0.01015ms/object
Testing with class com.bubble.serializer.objects.SubPojo
Number of runs: 10
Number of objects per run: 2000
Total Java serialize time: 234ms (20000 objects)
Total Bubble serialize time: 126ms (20000 objects)
Total Light serialize time: 62ms (20000 objects)
Avg Java serialize time: 0.0117ms/object
Avg Bubble serialize time: 0.0063ms/object
Avg Light serialize time: 0.0031ms/object
Total Java deserialize time: 199ms (20000 objects)
Total Bubble deserialize time: 171ms (20000 objects)
Total Light deserialize time: 188ms (20000 objects)
Avg Java deserialize time: 0.00995ms/object
Avg Bubble deserialize time: 0.00855ms/object
Avg Light deserialize time: 0.00940ms/object
Testing with class com.bubble.serializer.objects.IntArrayPojo
Number of runs: 10
Number of objects per run: 2000
Total Java serialize time: 548ms (20000 objects)
Total Bubble serialize time: 594ms (20000 objects)
Total Light serialize time: 281ms (20000 objects)
Avg Java serialize time: 0.02740ms/object
Avg Bubble serialize time: 0.02970ms/object
Avg Light serialize time: 0.01405ms/object
Total Java deserialize time: 750ms (20000 objects)
Total Bubble deserialize time: 1485ms (20000 objects)
Total Light deserialize time: 1343ms (20000 objects)
Avg Java deserialize time: 0.03750ms/object
Avg Bubble deserialize time: 0.07425ms/object
Avg Light deserialize time: 0.06715ms/object

Faster Java Serialization was developed by Leonardo "Bubble" Mesquita