From b88bbf073a23f53456855576d146f675a5fa9391 Mon Sep 17 00:00:00 2001 From: "Oleg V. Kozlyuk" Date: Tue, 21 Nov 2023 12:37:55 +0300 Subject: [PATCH 1/4] Add OperationsPerSecondAttribute --- .../Attributes/Columns/OperationsPerSecondAttribute.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs diff --git a/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs new file mode 100644 index 0000000000..3728f69a08 --- /dev/null +++ b/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs @@ -0,0 +1,9 @@ +using BenchmarkDotNet.Columns; +using JetBrains.Annotations; + +namespace BenchmarkDotNet.Attributes; + +public class OperationsPerSecondAttribute : ColumnConfigBaseAttribute +{ + public OperationsPerSecondAttribute() : base(StatisticColumn.OperationsPerSecond) { } +} From 71ed8cef3b9bb5acd593603bada792ef74657e60 Mon Sep 17 00:00:00 2001 From: "Oleg V. Kozlyuk" Date: Tue, 21 Nov 2023 12:39:39 +0300 Subject: [PATCH 2/4] Code style compliance --- .../Columns/OperationsPerSecondAttribute.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs index 3728f69a08..dc84100d69 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs @@ -1,9 +1,10 @@ using BenchmarkDotNet.Columns; using JetBrains.Annotations; -namespace BenchmarkDotNet.Attributes; - -public class OperationsPerSecondAttribute : ColumnConfigBaseAttribute -{ - public OperationsPerSecondAttribute() : base(StatisticColumn.OperationsPerSecond) { } +namespace BenchmarkDotNet.Attributes { + [PublicAPI] + public class OperationsPerSecondAttribute : ColumnConfigBaseAttribute + { + public OperationsPerSecondAttribute() : base(StatisticColumn.OperationsPerSecond) { } + } } From 2d6c1a545c2cfc1457d0e4615a3aff2ab76c4422 Mon Sep 17 00:00:00 2001 From: "Oleg V. Kozlyuk" Date: Tue, 21 Nov 2023 12:40:26 +0300 Subject: [PATCH 3/4] Code style --- .../Attributes/Columns/OperationsPerSecondAttribute.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs index dc84100d69..234f5d33ae 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs @@ -1,8 +1,8 @@ using BenchmarkDotNet.Columns; using JetBrains.Annotations; -namespace BenchmarkDotNet.Attributes { - [PublicAPI] +namespace BenchmarkDotNet.Attributes +{ public class OperationsPerSecondAttribute : ColumnConfigBaseAttribute { public OperationsPerSecondAttribute() : base(StatisticColumn.OperationsPerSecond) { } From 40502c78309e19d27349bbbd539092fffe096e06 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 22 Nov 2023 13:19:40 +0100 Subject: [PATCH 4/4] Apply suggestions from code review --- .../Attributes/Columns/OperationsPerSecondAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs index 234f5d33ae..6315dc3694 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/OperationsPerSecondAttribute.cs @@ -1,7 +1,7 @@ using BenchmarkDotNet.Columns; using JetBrains.Annotations; -namespace BenchmarkDotNet.Attributes +namespace BenchmarkDotNet.Attributes { public class OperationsPerSecondAttribute : ColumnConfigBaseAttribute {