https://github.com/gpreviatti/benchmarks-dotnet
Simple project with some benchmarks against different libraries
https://github.com/gpreviatti/benchmarks-dotnet
automapper benchmark dotnet httpclient json-serialization mappers newtonsoft-json refit
Last synced: about 1 month ago
JSON representation
Simple project with some benchmarks against different libraries
- Host: GitHub
- URL: https://github.com/gpreviatti/benchmarks-dotnet
- Owner: gpreviatti
- Created: 2024-04-27T14:45:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-02T19:31:24.000Z (over 1 year ago)
- Last Synced: 2025-03-16T03:13:05.026Z (over 1 year ago)
- Topics: automapper, benchmark, dotnet, httpclient, json-serialization, mappers, newtonsoft-json, refit
- Language: C#
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Solution with BenchMarks tests
Simpple solution with some benchmarks for some of the most used libraries and packages in dotnet
- `ListsAndSpans`: compares iteration/sum performance across arrays, List, interface-based collections, and Span. Results showed that Span is fastest, followed by arrays then List, while interface-based iteration incurs significant overhead. See the detailed report in `ListsAndSpans/BenchmarkDotNet.Artifacts/results`.
## Results
[JsonConverter x JsonSerializer x Protobuffer](./JsonCerverterxJsonSerializerxProtobuffer)
[HttpClient x Refit](./HttpClientxRefit)
[Mappers Libraries](./Mappers)
[Database Frameworks](./DatabaseFrameworks)
[Class x Struct x Record](./ClassStructRecord)
[Lists and Spans](./ListsAndSpans) – detailed benchmarks and HTML report available in the project directory.