Skip to content

Commit bde61b8

Browse files
committed
Add MessagePack Benchmark
1 parent a085137 commit bde61b8

14 files changed

Lines changed: 572 additions & 32 deletions

.gitignore

Lines changed: 127 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,77 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33
##
4-
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
4+
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
55

66
# User-specific files
7+
*.rsuser
78
*.suo
89
*.user
910
*.userosscache
1011
*.sln.docstates
12+
*.env
1113

1214
# User-specific files (MonoDevelop/Xamarin Studio)
1315
*.userprefs
1416

17+
# Mono auto generated files
18+
mono_crash.*
19+
1520
# Build results
1621
[Dd]ebug/
1722
[Dd]ebugPublic/
1823
[Rr]elease/
1924
[Rr]eleases/
20-
x64/
21-
x86/
25+
26+
[Dd]ebug/x64/
27+
[Dd]ebugPublic/x64/
28+
[Rr]elease/x64/
29+
[Rr]eleases/x64/
30+
bin/x64/
31+
obj/x64/
32+
33+
[Dd]ebug/x86/
34+
[Dd]ebugPublic/x86/
35+
[Rr]elease/x86/
36+
[Rr]eleases/x86/
37+
bin/x86/
38+
obj/x86/
39+
40+
[Ww][Ii][Nn]32/
41+
[Aa][Rr][Mm]/
42+
[Aa][Rr][Mm]64/
43+
[Aa][Rr][Mm]64[Ee][Cc]/
2244
bld/
23-
[Bb]in/
2445
[Oo]bj/
2546
[Ll]og/
47+
[Ll]ogs/
48+
49+
# Build results on 'Bin' directories
50+
**/[Bb]in/*
51+
# Uncomment if you have tasks that rely on *.refresh files to move binaries
52+
# (https://github.com/github/gitignore/pull/3736)
53+
#!**/[Bb]in/*.refresh
2654

2755
# Visual Studio 2015/2017 cache/options directory
2856
.vs/
2957
# Uncomment if you have tasks that create the project's static files in wwwroot
3058
#wwwroot/
3159

32-
# VS Code
33-
.vscode/
34-
3560
# Visual Studio 2017 auto generated files
3661
Generated\ Files/
3762

3863
# MSTest test Results
3964
[Tt]est[Rr]esult*/
4065
[Bb]uild[Ll]og.*
66+
*.trx
4167

42-
# NUNIT
68+
# NUnit
4369
*.VisualState.xml
4470
TestResult.xml
71+
nunit-*.xml
72+
73+
# Approval Tests result files
74+
*.received.*
4575

4676
# Build Results of an ATL Project
4777
[Dd]ebugPS/
@@ -55,18 +85,21 @@ BenchmarkDotNet.Artifacts/
5585
project.lock.json
5686
project.fragment.lock.json
5787
artifacts/
58-
# **/Properties/launchSettings.json
88+
89+
# ASP.NET Scaffolding
90+
ScaffoldingReadMe.txt
5991

6092
# StyleCop
6193
StyleCopReport.xml
6294

6395
# Files built by Visual Studio
6496
*_i.c
6597
*_p.c
66-
*_i.h
98+
*_h.h
6799
*.ilk
68100
*.meta
69101
*.obj
102+
*.idb
70103
*.iobj
71104
*.pch
72105
*.pdb
@@ -80,7 +113,9 @@ StyleCopReport.xml
80113
*.tlh
81114
*.tmp
82115
*.tmp_proj
116+
*_wpftmp.csproj
83117
*.log
118+
*.tlog
84119
*.vspscc
85120
*.vssscc
86121
.builds
@@ -125,6 +160,10 @@ _ReSharper*/
125160
# JustCode is a .NET coding add-in
126161
.JustCode
127162

163+
# JetBrains Rider
164+
.idea/
165+
*.sln.iml
166+
128167
# TeamCity is a build add-in
129168
_TeamCity*
130169

@@ -135,12 +174,18 @@ _TeamCity*
135174
.axoCover/*
136175
!.axoCover/settings.json
137176

177+
# Coverlet is a free, cross platform Code Coverage Tool
178+
coverage*.json
179+
coverage*.xml
180+
coverage*.info
181+
138182
# Visual Studio code coverage results
139183
*.coverage
140184
*.coveragexml
141185

142186
# NCrunch
143187
_NCrunch_*
188+
.NCrunch_*
144189
.*crunch*.local.xml
145190
nCrunchTemp_*
146191

@@ -182,6 +227,8 @@ PublishScripts/
182227

183228
# NuGet Packages
184229
*.nupkg
230+
# NuGet Symbol Packages
231+
*.snupkg
185232
# The packages folder can be ignored because of Package Restore
186233
**/[Pp]ackages/*
187234
# except build/, which is used as an MSBuild target.
@@ -206,6 +253,8 @@ BundleArtifacts/
206253
Package.StoreAssociation.xml
207254
_pkginfo.txt
208255
*.appx
256+
*.appxbundle
257+
*.appxupload
209258

210259
# Visual Studio cache files
211260
# files ending in .cache can be ignored
@@ -255,6 +304,9 @@ ServiceFabricBackup/
255304
*.bim.layout
256305
*.bim_*.settings
257306
*.rptproj.rsuser
307+
*- [Bb]ackup.rdl
308+
*- [Bb]ackup ([0-9]).rdl
309+
*- [Bb]ackup ([0-9][0-9]).rdl
258310

259311
# Microsoft Fakes
260312
FakesAssemblies/
@@ -275,6 +327,17 @@ node_modules/
275327
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
276328
*.vbw
277329

330+
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
331+
*.vbp
332+
333+
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
334+
*.dsw
335+
*.dsp
336+
337+
# Visual Studio 6 technical files
338+
*.ncb
339+
*.aps
340+
278341
# Visual Studio LightSwitch build output
279342
**/*.HTMLClient/GeneratedArtifacts
280343
**/*.DesktopClient/GeneratedArtifacts
@@ -284,26 +347,22 @@ node_modules/
284347
_Pvt_Extensions
285348

286349
# Paket dependency manager
287-
.paket/paket.exe
350+
**/.paket/paket.exe
288351
paket-files/
289352

290353
# FAKE - F# Make
291-
.fake/
354+
**/.fake/
292355

293-
# JetBrains Rider
294-
.idea/
295-
*.sln.iml
296-
297-
# CodeRush
298-
**/.cr/personal/
356+
# CodeRush personal settings
357+
**/.cr/personal
299358

300359
# Python Tools for Visual Studio (PTVS)
301-
__pycache__/
360+
**/__pycache__/
302361
*.pyc
303362

304363
# Cake - Uncomment if you are using it
305-
# tools/**
306-
# !tools/packages.config
364+
#tools/**
365+
#!tools/packages.config
307366

308367
# Tabs Studio
309368
*.tss
@@ -325,9 +384,55 @@ ASALocalRun/
325384

326385
# MSBuild Binary and Structured Log
327386
*.binlog
387+
MSBuild_Logs/
388+
389+
# AWS SAM Build and Temporary Artifacts folder
390+
.aws-sam
328391

329392
# NVidia Nsight GPU debugger configuration file
330393
*.nvuser
331394

332395
# MFractors (Xamarin productivity tool) working folder
333-
.mfractor/
396+
**/.mfractor/
397+
398+
# Local History for Visual Studio
399+
**/.localhistory/
400+
401+
# Visual Studio History (VSHistory) files
402+
.vshistory/
403+
404+
# BeatPulse healthcheck temp database
405+
healthchecksdb
406+
407+
# Backup folder for Package Reference Convert tool in Visual Studio 2017
408+
MigrationBackup/
409+
410+
# Ionide (cross platform F# VS Code tools) working folder
411+
**/.ionide/
412+
413+
# Fody - auto-generated XML schema
414+
FodyWeavers.xsd
415+
416+
# VS Code files for those working on multiple tools
417+
.vscode/*
418+
!.vscode/settings.json
419+
!.vscode/tasks.json
420+
!.vscode/launch.json
421+
!.vscode/extensions.json
422+
!.vscode/*.code-snippets
423+
424+
# Local History for Visual Studio Code
425+
.history/
426+
427+
# Built Visual Studio Code Extensions
428+
*.vsix
429+
430+
# Windows Installer files from build outputs
431+
*.cab
432+
*.msi
433+
*.msix
434+
*.msm
435+
*.msp
436+
437+
# Source Generator files
438+
**/_Generated/**/*.g.cs

src/.editorconfig

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,8 @@ dotnet_diagnostic.CA2241.severity = error
746746
dotnet_diagnostic.IDE0043.severity = none
747747

748748
##########################################
749-
# ReSharper properties
749+
# dotnet extensions
750+
# https://github.com/dotnet/extensions/blob/d494f06e36affa83f5d216ddfe0bef2eb3f37c0d/docs/list-of-diagnostics.md
750751
##########################################
751752

752753
#### LoggerMessage ####
@@ -1434,9 +1435,15 @@ dotnet_diagnostic.S101.severity = none
14341435
# General or reserved exceptions should never be thrown
14351436
dotnet_diagnostic.S112.severity = none
14361437

1438+
# "Obsolete" attributes should include explanations
1439+
dotnet_diagnostic.S1123.severity = none
1440+
14371441
# Track uses of "TODO" tags
14381442
dotnet_diagnostic.S1135.severity = none
14391443

1444+
# Composite format strings should not lead to unexpected behavior at runtime
1445+
dotnet_diagnostic.S2275.severity = none
1446+
14401447
# Trivial properties should be auto-implemented
14411448
dotnet_diagnostic.S2325.severity = none
14421449

@@ -1449,21 +1456,15 @@ dotnet_diagnostic.S2933.severity = none
14491456
# Exceptions should not be explicitly rethrown
14501457
dotnet_diagnostic.S3445.severity = none
14511458

1459+
# Overloads with a "CultureInfo" or an "IFormatProvider" parameter should be used
1460+
dotnet_diagnostic.S4056.severity = none
1461+
14521462
# Unread "private" fields should be removed
14531463
dotnet_diagnostic.S4487.severity = none
14541464

14551465
# Non-async "Task/Task<T>" methods should not return null
14561466
dotnet_diagnostic.S4586.severity = none
14571467

1458-
# Composite format strings should not lead to unexpected behavior at runtime
1459-
dotnet_diagnostic.S2275.severity = none
1460-
1461-
# Overloads with a "CultureInfo" or an "IFormatProvider" parameter should be used
1462-
dotnet_diagnostic.S4056.severity = none
1463-
1464-
# "Obsolete" attributes should include explanations
1465-
dotnet_diagnostic.S1123.severity = none
1466-
14671468
#### error ####
14681469

14691470
# S108: Nested blocks of code should not be left empty
@@ -1534,6 +1535,30 @@ dotnet_diagnostic.S3923.severity = error
15341535
# S4158: Empty collections should not be accessed or iterated
15351536
dotnet_diagnostic.S4158.severity = error
15361537

1538+
##########################################
1539+
# MessagePack-CSharp
1540+
# https://github.com/MessagePack-CSharp/MessagePack-CSharp/blob/master/doc/analyzers/index.md
1541+
##########################################
1542+
1543+
dotnet_diagnostic.MsgPack001.severity = none
1544+
dotnet_diagnostic.MsgPack002.severity = error
1545+
dotnet_diagnostic.MsgPack003.severity = error
1546+
dotnet_diagnostic.MsgPack004.severity = error
1547+
dotnet_diagnostic.MsgPack005.severity = error
1548+
dotnet_diagnostic.MsgPack006.severity = error
1549+
dotnet_diagnostic.MsgPack007.severity = error
1550+
dotnet_diagnostic.MsgPack008.severity = error
1551+
dotnet_diagnostic.MsgPack009.severity = error
1552+
dotnet_diagnostic.MsgPack010.severity = error
1553+
dotnet_diagnostic.MsgPack011.severity = error
1554+
dotnet_diagnostic.MsgPack012.severity = error
1555+
dotnet_diagnostic.MsgPack013.severity = error
1556+
dotnet_diagnostic.MsgPack014.severity = error
1557+
dotnet_diagnostic.MsgPack015.severity = error
1558+
dotnet_diagnostic.MsgPack016.severity = error
1559+
dotnet_diagnostic.MsgPack017.severity = error
1560+
dotnet_diagnostic.MsgPack018.severity = error
1561+
15371562
##########################################
15381563
# ReSharper properties
15391564
##########################################

src/Example.CSharp.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebPollyTest", "plugins\Web
275275
EndProject
276276
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsolePollyTest", "plugins\ConsolePollyTest\ConsolePollyTest.csproj", "{7F0AA476-83A6-49C7-9064-6D13EF4811B9}"
277277
EndProject
278+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MessagePackTest", "plugins\MessagePackTest\MessagePackTest.csproj", "{16291F9D-48EC-496B-8610-E686CA57F747}"
279+
EndProject
278280
Global
279281
GlobalSection(SolutionConfigurationPlatforms) = preSolution
280282
Debug|Any CPU = Debug|Any CPU
@@ -669,6 +671,10 @@ Global
669671
{7F0AA476-83A6-49C7-9064-6D13EF4811B9}.Debug|Any CPU.Build.0 = Debug|Any CPU
670672
{7F0AA476-83A6-49C7-9064-6D13EF4811B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
671673
{7F0AA476-83A6-49C7-9064-6D13EF4811B9}.Release|Any CPU.Build.0 = Release|Any CPU
674+
{16291F9D-48EC-496B-8610-E686CA57F747}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
675+
{16291F9D-48EC-496B-8610-E686CA57F747}.Debug|Any CPU.Build.0 = Debug|Any CPU
676+
{16291F9D-48EC-496B-8610-E686CA57F747}.Release|Any CPU.ActiveCfg = Release|Any CPU
677+
{16291F9D-48EC-496B-8610-E686CA57F747}.Release|Any CPU.Build.0 = Release|Any CPU
672678
EndGlobalSection
673679
GlobalSection(SolutionProperties) = preSolution
674680
HideSolutionNode = FALSE
@@ -784,6 +790,7 @@ Global
784790
{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {630114C3-1AE7-468E-8ADD-1CDE3E9EEF26}
785791
{F4FAEA96-D8F1-4C3D-83EF-A121BAFD2EA1} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
786792
{7F0AA476-83A6-49C7-9064-6D13EF4811B9} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
793+
{16291F9D-48EC-496B-8610-E686CA57F747} = {630114C3-1AE7-468E-8ADD-1CDE3E9EEF26}
787794
EndGlobalSection
788795
GlobalSection(ExtensibilityGlobals) = postSolution
789796
SolutionGuid = {CBE0CD6C-2E47-4D9F-B072-C138AA4A6D5A}

0 commit comments

Comments
 (0)