mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[PS-1471] Create Allocation Free EncryptedStringAttribute
validation (#2273)
* Add new logic for validating encrypted strings
* Add benchmarks
* Formatting & Comments
* Move Debug assertion to just be a test
* Address PR feedback pt.1
* Address more PR feedback
* Formatting
* merge branch 'master' into 'encrypted-string-perf'
* Revert "merge branch 'master' into 'encrypted-string-perf'"
This reverts commit a20e127c9c
.
This commit is contained in:
23
perf/MicroBenchmarks/Core/EncryptedStringAttributeTests.cs
Normal file
23
perf/MicroBenchmarks/Core/EncryptedStringAttributeTests.cs
Normal file
File diff suppressed because one or more lines are too long
18
perf/MicroBenchmarks/MicroBenchmarks.csproj
Normal file
18
perf/MicroBenchmarks/MicroBenchmarks.csproj
Normal file
@ -0,0 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.13.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Core\Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
4
perf/MicroBenchmarks/Program.cs
Normal file
4
perf/MicroBenchmarks/Program.cs
Normal file
@ -0,0 +1,4 @@
|
||||
using System.Reflection;
|
||||
using BenchmarkDotNet.Running;
|
||||
|
||||
BenchmarkRunner.Run(Assembly.GetEntryAssembly());
|
2668
perf/MicroBenchmarks/packages.lock.json
Normal file
2668
perf/MicroBenchmarks/packages.lock.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user