Package com.bubble.serializer.benchmark

Source Code of com.bubble.serializer.benchmark.MultipleTest

package com.bubble.serializer.benchmark;

import com.bubble.serializer.objects.ExtremePojo;
import com.bubble.serializer.objects.IntArrayPojo;
import com.bubble.serializer.objects.ObjectPojo;
import com.bubble.serializer.objects.Pojo;
import com.bubble.serializer.objects.PrimitivePojo;
import com.bubble.serializer.objects.SubPojo;

public class MultipleTest {
  public static void main(String[] args) throws Exception {
    AbstractSerializeTest test1 = new AbstractSerializeTest(2000, 10) {
      protected Object createTestObject() {
        return new PrimitivePojo(true, (byte)1, (short)2, 3, 4, 5, 6, 'c');
      };
    };

    AbstractSerializeTest test2 = new AbstractSerializeTest(2000, 10) {
      protected Object createTestObject() {
        return new ExtremePojo();
      };
    };
   
    AbstractSerializeTest test3 = new AbstractSerializeTest(2000, 10) {
      protected Object createTestObject() {
        return new ObjectPojo(new Pojo(19));
      };
    };
   
    AbstractSerializeTest test4 = new AbstractSerializeTest(2000, 10) {
      protected Object createTestObject() {
        return new SubPojo(7,11);
      };
    };

    AbstractSerializeTest test5 = new AbstractSerializeTest(2000, 10) {
      protected Object createTestObject() {
        return new IntArrayPojo(100);
      };
    };
   
    test1.runTest();
    test2.runTest();
    test3.runTest();
    test4.runTest();
    test5.runTest();
  }

}
TOP

Related Classes of com.bubble.serializer.benchmark.MultipleTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.