public void BenchmarkIncrementByVal(int limit) { SixtyFourByteStruct value = new SixtyFourByteStruct(); int counter = 0; do { value = IncrementByVal(value); counter++; }while (limit != counter); }
private SixtyFourByteStruct IncrementByVal(SixtyFourByteStruct toIncrement) { toIncrement.d0++; return(toIncrement); }
private void IncrementByRef(ref SixtyFourByteStruct toIncrement) { toIncrement.d0++; }