diff options
Diffstat (limited to 'tests/src/JIT/Performance/CodeQuality/BenchI/QuickSort/QuickSort.cs')
-rw-r--r-- | tests/src/JIT/Performance/CodeQuality/BenchI/QuickSort/QuickSort.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/BenchI/QuickSort/QuickSort.cs b/tests/src/JIT/Performance/CodeQuality/BenchI/QuickSort/QuickSort.cs index 191211aaa8..7cdac96a69 100644 --- a/tests/src/JIT/Performance/CodeQuality/BenchI/QuickSort/QuickSort.cs +++ b/tests/src/JIT/Performance/CodeQuality/BenchI/QuickSort/QuickSort.cs @@ -11,6 +11,8 @@ using Xunit; [assembly: OptimizeForBenchmarks] [assembly: MeasureInstructionsRetired] +namespace Benchstone.BenchI +{ public static class QuickSort { @@ -52,7 +54,7 @@ public static class QuickSort arr[j] = temp; } } - + // need to swap the pivot and a[i](or a[j] as i==j) so // that the pivot will be at its final place in the sorted array @@ -108,9 +110,10 @@ public static class QuickSort } return result; } - + public static int Main() { bool result = TestBase(); return (result ? 100 : -1); } } +} |