This commit is contained in:
pCYSl5EDgo 2020-09-27 21:30:08 +09:00
Родитель ddbf8a6934
Коммит 9df13ebba1
13 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@ -82,11 +82,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MessagePackAnalyzer.Tests",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MessagePack.Generator.Tests", "tests\MessagePack.Generator.Tests\MessagePack.Generator.Tests.csproj", "{6AC51E68-4681-463A-B4B6-BD53517244B2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HardwareIntrinsicsBenchmark", "benchmark\HardwareIntrinsicsBenchmark\HardwareIntrinsicsBenchmark.csproj", "{4C9BB260-62D8-49CD-9F9C-9AA6A8BFC637}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExperimentalBenchmark", "benchmark\ExperimentalBenchmark\ExperimentalBenchmark.csproj", "{4C9BB260-62D8-49CD-9F9C-9AA6A8BFC637}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MessagePack.Experimental", "src\MessagePack.Experimental\MessagePack.Experimental.csproj", "{AC2503A7-736D-4AE6-9355-CF35D9DF6139}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MessagePack.Experimental.Tests", "tests\MessagePack.Experimental.Tests\MessagePack.Experimental.Tests.csproj", "{8AB40D1C-1134-4D77-B39A-19AEDC729450}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MessagePack.Experimental.Tests", "tests\MessagePack.Experimental.Tests\MessagePack.Experimental.Tests.csproj", "{8AB40D1C-1134-4D77-B39A-19AEDC729450}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

Просмотреть файл

@ -3,9 +3,10 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>HardwareIntrinsicsBenchmark</AssemblyName>
<AssemblyName>ExperimentalBenchmark</AssemblyName>
<RootNamespace>Benchmark</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>

Просмотреть файл

@ -69,7 +69,7 @@ namespace Benchmark
[GlobalSetup]
public void SetUp()
{
var resolver = newmsgpack::MessagePack.Resolvers.CompositeResolver.Create(new newmsgpack::MessagePack.Formatters.IMessagePackFormatter[] { new newmsgpack.MessagePack.Formatters.UnsafeUnmanagedStructArrayFormatter<Matrix4x4>(50) }, new[] { newmsgpack::MessagePack.Resolvers.StandardResolver.Instance });
var resolver = newmsgpack::MessagePack.Resolvers.CompositeResolver.Create(new newmsgpack::MessagePack.Formatters.IMessagePackFormatter[] { new newmsgpack::MessagePack.Formatters.UnsafeUnmanagedStructArrayFormatter<Matrix4x4>(50) }, new[] { newmsgpack::MessagePack.Resolvers.StandardResolver.Instance });
options = newmsgpack::MessagePack.MessagePackSerializerOptions.Standard.WithResolver(resolver);
input = new Matrix4x4[Size];

Просмотреть файл

@ -5,6 +5,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<IsPackable>true</IsPackable>
<Title>MessagePack for C#, Experimental Plugins</Title>
@ -13,23 +14,23 @@
</PropertyGroup>
<ItemGroup>
<None Update="FormatterHelpers.tt">
<None Update="HardwareIntrinsics\FormatterHelpers.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>FormatterHelpers.cs</LastGenOutput>
</None>
<None Update="PrimitiveArrayGetFormatterHelper.tt">
<None Update="HardwareIntrinsics\PrimitiveArrayGetFormatterHelper.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>PrimitiveArrayGetFormatterHelper.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Compile Update="FormatterHelpers.cs">
<Compile Update="HardwareIntrinsics\FormatterHelpers.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>FormatterHelpers.tt</DependentUpon>
</Compile>
<Compile Update="PrimitiveArrayGetFormatterHelper.cs">
<Compile Update="HardwareIntrinsics\PrimitiveArrayGetFormatterHelper.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>PrimitiveArrayGetFormatterHelper.tt</DependentUpon>