Ez2Raven / data-transformation

Processes SNMP data structures into a normalized form for reporting
0 stars 0 forks source link

Migrate Unit Tests to Dotnet 5 #1

Open Ez2Raven opened 3 years ago

Ez2Raven commented 3 years ago
Ez2Raven commented 3 years ago

Performance profiling on a trivial implementation for processing SNMP json structures:

For a flat object with 3 properties, locating the last element

Deserialize Json string to C# Object for post processing = 110ms Parse Json String to JsonDocument and process each element = 40ms

In terms of performance, we should choose to work with JsonDocument instead of C# Object. However, working with C# Object also means that we have flexibility to work with other data structure such as Binary and XML.

For now, I will migrate to C# object processing until there's a need to tune performance.