Native Bindings is x10 Slower
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- performance
Research direction
Start by reproducing the reported comparison with the SerializerTests command and the .NET Core Preview 7 environment described in the issue. Use PerfView to inspect the time attributed to parserJson and compare the native and managed serializer paths. Done means identifying the cause of the native deserialization slowdown and documenting or correcting the usage or implementation issue.
Written by the indexing model from the issue text.
Description
I have tried to add SimdJsonSharp to my serializer perfomrance test suite. See https://github.com/Alois-xx/SerializerTests
When you compile it and let it run on .NET Core Preview 7
D:\Source\git\SerializerTests\bin\Debug\netcoreapp3.0>SerializerTests.exe -test combined -serializer Utf8JsonSerializer,SimdJsonSharpSerializer,SimdJsonSharpSerializerN
Serializer Objects "Time to serialize in s" "Time to deserialize in s" "Size in bytes" FileVersion Framework ProjectHome DataFormat FormatDetails Supports Versioning
SimdJsonSharpSerializer 1000000 0.1310 0.116 35777803 1.5.0.0 .NET Core 3.0.0-preview7-27912-14 https://github.com/EgorBo/SimdJsonSharp based on https://github.com/lemire/simdjson Text Json No
SimdJsonSharpSerializerN 1000000 0.1117 3.139 35777803 1.7.0.0 .NET Core 3.0.0-preview7-27912-14 https://github.com/EgorBo/SimdJsonSharp based on https://github.com/lemire/simdjson Text Json No
Utf8JsonSerializer 1000000 0.1135 0.330 35777803 1.3.7 .NET Core 3.0.0-preview7-27912-14 https://github.com/neuecc/Utf8Json Text Json Yes
I find the native version needs 3s vs 0.1s for the managed version.

When lookint at the data in PerfView I find most time is spent in paserJson. Why this is so costly I cannot tell but it looks wasteful. Can you take a look why this is so much slower? Am I using the library the wrong way?
- Dominant language
- C#
- Stars
- 687
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EgorBo/SimdJsonSharp
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
EgorBo/SimdJsonSharp#23 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
EgorBo/SimdJsonSharp#20 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
EgorBo/SimdJsonSharp#19 · 3 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 18/100
EgorBo/SimdJsonSharp#16 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
EgorBo/SimdJsonSharp#15 · 2 comments ·
All issues in EgorBo/SimdJsonSharp
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·