public void Setup()
 {
     _serializer = new Serializer();
     _stream     = new MemoryStream();
     _testStruct = LargeStruct.Create();
     _testPerson = TypicalPersonData.MakeRandom();
 }
        public override void Setup(BenchmarkContext context)
        {
            base.Setup(context);
            _testStruct = LargeStruct.Create();
            _testObject = TypicalPersonData.MakeRandom();

            var a = new CyclicA();
            var b = new CyclicB();

            a.B = b;
            b.A = a;

            _cyclic = a;
        }
 public override void Setup(BenchmarkContext context)
 {
     base.Setup(context);
     InitStreamWith(LargeStruct.Create());
 }