From cdbc8c4805347f47ac4b8692e99bee1d67d5b99d Mon Sep 17 00:00:00 2001 From: Ivan Zlatanov Date: Sat, 9 Feb 2019 10:21:09 +0200 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 |