-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of benchmark itself
- Loading branch information
Showing
7 changed files
with
214 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
root=true | ||
|
||
[*] | ||
|
||
#### Core EditorConfig Options #### | ||
|
||
# Indentation and spacing | ||
indent_style=space | ||
indent_size=2 | ||
trim_trailing_whitespace=true | ||
charset=utf-8 | ||
max_line_length=140 | ||
|
||
# New line preferences | ||
insert_final_newline=true | ||
|
||
#### .NET Coding Conventions #### | ||
|
||
[*.cs] | ||
|
||
indent_size=4 | ||
|
||
# Microsoft .NET properties | ||
dotnet_separate_import_directive_groups=false | ||
dotnet_sort_system_directives_first=true | ||
dotnet_style_predefined_type_for_locals_parameters_members=true:suggestion | ||
dotnet_style_predefined_type_for_member_access=false:suggestion | ||
csharp_new_line_before_open_brace=all | ||
csharp_new_line_before_else=true | ||
csharp_space_after_cast=true | ||
csharp_space_after_keywords_in_control_flow_statements=true | ||
dotnet_style_collection_initializer=true:suggestion | ||
dotnet_style_object_initializer=true:suggestion | ||
csharp_style_var_when_type_is_apparent=true:suggestion | ||
csharp_style_expression_bodied_methods=true:suggestion | ||
csharp_prefer_braces=true:warning | ||
|
||
# ReSharper properties | ||
resharper_place_accessorholder_attribute_on_same_line=false | ||
resharper_csharp_wrap_after_declaration_lpar=true | ||
resharper_csharp_wrap_parameters_style=chop_if_long | ||
resharper_max_formal_parameters_on_line=3 | ||
resharper_blank_lines_around_single_line_auto_property=1 | ||
resharper_csharp_keep_blank_lines_in_declarations=1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using BenchmarkDotNet.Columns; | ||
using BenchmarkDotNet.Reports; | ||
|
||
namespace TaTooIne.Benchmark; | ||
|
||
internal sealed class BenchmarkParamsColumnProvider : IColumnProvider | ||
{ | ||
private BenchmarkParamsColumnProvider() | ||
{ | ||
} | ||
|
||
public static BenchmarkParamsColumnProvider Instance { get; } = new(); | ||
|
||
public IEnumerable<IColumn> GetColumns(Summary summary) => | ||
summary.BenchmarksCases | ||
.SelectMany(c => c.Parameters.Items.Select(item => item.Definition)) | ||
.Where(c => c.Name != "order") | ||
.Select(definition => new ParamColumn(definition.Name, definition.PriorityInCategory)); | ||
} |
Oops, something went wrong.