public static int foo1() { Struct_128Kbytes s0 = new Struct_128Kbytes(); Struct_128Kbytes s1 = new Struct_128Kbytes(); Struct_128Kbytes s2 = new Struct_128Kbytes(); Struct_128Kbytes s3 = new Struct_128Kbytes(); Struct_128Kbytes s4 = new Struct_128Kbytes(); Struct_128Kbytes s5 = new Struct_128Kbytes(); int result = s0.Sum() + s1.Sum() + s2.Sum() + s3.Sum() + s4.Sum() + s5.Sum(); GC.Collect(); return(result); }
public static int foo2() { Struct_128Kbytes s0 = new Struct_128Kbytes(); Struct_128Kbytes s1 = new Struct_128Kbytes(); Struct_128Kbytes s2 = new Struct_128Kbytes(); Struct_128Kbytes s3 = new Struct_128Kbytes(); Struct_128Kbytes s4 = new Struct_128Kbytes(); Struct_128Kbytes s5 = new Struct_128Kbytes(); Struct_128Kbytes s6 = new Struct_128Kbytes(); Struct_128Kbytes s7 = new Struct_128Kbytes(); int result = s0.Sum() + s1.Sum() + s2.Sum() + s3.Sum() + s4.Sum() + s5.Sum() + s6.Sum() + s7.Sum(); GC.Collect(); return result; }