diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..08e2673 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Ivan Zlatanov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 070d00c..b99a7c8 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,21 @@ Supported features: 8. Ignoring nulls when serializing 9. Custom property names and order. 10. Required properties. + +### Benchmarks +BenchmarkDotNet=v0.11.3, OS=Windows 10.0.17134.523 (1803/April2018Update/Redstone4) +Intel Core i7-3770 CPU 3.40GHz (Ivy Bridge), 1 CPU, 8 logical and 4 physical cores +Frequency=3320316 Hz, Resolution=301.1762 ns, Timer=TSC +.NET Core SDK=2.2.101 + [Host] : .NET Core 2.2.0 (CoreCLR 4.6.27110.04, CoreFX 4.6.27110.04), 64bit RyuJIT + RyuJitX64 : .NET Core 2.2.0 (CoreCLR 4.6.27110.04, CoreFX 4.6.27110.04), 64bit RyuJIT + +Job=RyuJitX64 Jit=RyuJit Platform=X64 +Categories=Write + +Writing 100,000 items to Stream.Null. Newtosoft.Json has been setup to use array pooling. +``` +| Method | Mean | Error | StdDev | Ratio | RatioSD | Gen 0/1k Op | Allocated Memory/Op | +|---------------- |---------:|---------:|---------:|------:|--------:|------------:|--------------------:| +| WriteNewtonsoft | 530.5 ms | 6.346 ms | 5.626 ms | 1.00 | 0.00 | 18000.0000 | 77221.88 KB | +| WriteMaverick | 416.8 ms | 6.007 ms | 5.619 ms | 0.79 | 0.02 | - | 37.17 KB |