This is lesson 6 of 12 in this module Course 89% complete

Demo: Benchmarking Arrays (part 2)

Premium Content

Sign in with your account or join us to access this lesson.

In this lesson we inspect the benchmark DLL to confirm that the 1D array uses stelem directly, the 2D array calls Array.Set, and the jagged array chains ldelem and stelem, exactly as expected. We also inspects the flattened array path to show that the intermediate language multiply-and-add instructions for index calculation are far cheaper than the Array.Set call.