Add missing xunit performance attributes
authorAndy Ayers <andya@microsoft.com>
Tue, 10 May 2016 01:44:14 +0000 (18:44 -0700)
committerAndy Ayers <andya@microsoft.com>
Tue, 10 May 2016 01:44:14 +0000 (18:44 -0700)
We were not getting instructions retired data for these benchmarks
because the attribute to trigger measurement was missing.

Commit migrated from https://github.com/dotnet/coreclr/commit/218788facc4228dbda56c593fc2d2a23d395a0d5

src/coreclr/tests/src/JIT/Performance/CodeQuality/SciMark/kernel.cs
src/coreclr/tests/src/JIT/Performance/CodeQuality/V8/Crypto/Crypto.cs

index ccafefc..3cba0c1 100644 (file)
@@ -16,6 +16,9 @@
 using Microsoft.Xunit.Performance;
 using System;
 
+[assembly: OptimizeForBenchmarks]
+[assembly: MeasureInstructionsRetired]
+
 namespace SciMark2
 {
     public static class kernel
index b2766b2..1ce6005 100644 (file)
@@ -43,6 +43,9 @@ using System;
 using System.Collections.Generic;
 using System.Globalization;
 
+[assembly: OptimizeForBenchmarks]
+[assembly: MeasureInstructionsRetired]
+
 namespace Crypto
 {
     public class Support