From 218788facc4228dbda56c593fc2d2a23d395a0d5 Mon Sep 17 00:00:00 2001 From: Andy Ayers Date: Mon, 9 May 2016 18:44:14 -0700 Subject: [PATCH] Add missing xunit performance attributes We were not getting instructions retired data for these benchmarks because the attribute to trigger measurement was missing. --- tests/src/JIT/Performance/CodeQuality/SciMark/kernel.cs | 3 +++ tests/src/JIT/Performance/CodeQuality/V8/Crypto/Crypto.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/src/JIT/Performance/CodeQuality/SciMark/kernel.cs b/tests/src/JIT/Performance/CodeQuality/SciMark/kernel.cs index ccafefc..3cba0c1 100644 --- a/tests/src/JIT/Performance/CodeQuality/SciMark/kernel.cs +++ b/tests/src/JIT/Performance/CodeQuality/SciMark/kernel.cs @@ -16,6 +16,9 @@ using Microsoft.Xunit.Performance; using System; +[assembly: OptimizeForBenchmarks] +[assembly: MeasureInstructionsRetired] + namespace SciMark2 { public static class kernel diff --git a/tests/src/JIT/Performance/CodeQuality/V8/Crypto/Crypto.cs b/tests/src/JIT/Performance/CodeQuality/V8/Crypto/Crypto.cs index b2766b2..1ce6005 100644 --- a/tests/src/JIT/Performance/CodeQuality/V8/Crypto/Crypto.cs +++ b/tests/src/JIT/Performance/CodeQuality/V8/Crypto/Crypto.cs @@ -43,6 +43,9 @@ using System; using System.Collections.Generic; using System.Globalization; +[assembly: OptimizeForBenchmarks] +[assembly: MeasureInstructionsRetired] + namespace Crypto { public class Support -- 2.7.4