Loading...

test the server api for nws data


get grid endpoint v 1. Method: Async HttpClient deserializes string into dynamic object

Result:

Elapsed time:


get grid endpoint v 2. Method: Async HttpClient deserializes stream into POCO using Newtonsoft

Result:

Elapsed time:


get forecast json through js/ajax

Result first temp:

Elapsed time:


get forecast json through api

Result first temp:

Elapsed time:


get nws wx model

Result first temp:

Elapsed time:


get burn area map models original method. JavaScript/AJAX calls to NWS API

Elapsed time:

Models:


get burn area map models v 1. Method: HttpClient asynchronous calls to NWS API, deserialize JSON string into dynamic object, perform Newtonsoft JSON LINQ on the dynamic object.

Elapsed time:

Models:


get burn area map models v 2. Method: HttpClient asynchronous calls to NWS API, convert JSON string into dynamic object, convert that to POCO of JArray, perform LINQ on that and IEnumerable

Elapsed time:

Models:


get burn area map models v 3. Method: HttpClient asynchronous calls to NWS API, deserialize JSON string into POCO via System.Text.Json, perform LINQ on IEnumerable

Time:

Models:


get burn area map models v 4. Method: Array of tasks to make asynchronous HttpClient calls to NWS API, deserialize Stream into POCO via System.Text.Json, perform LINQ on IEnumerable

Time:

Models:


get burn area map models v 5. Method: Array of tasks to make asynchronous WebClient calls to NWS API, deserialize Stream into POCO via System.Text.Json (combine awaits), perform LINQ on IEnumerable

Time:

Models:

get burn area map models v 6. Synchronous calls to NWS API with WebClient, deserialize JSON string into POCO via System.Text.Json, perform LINQ on IEnumerable

Time:

Models:

get burn area map models v 7. Array of tasks to make asynchronous HttpClient calls to NWS API, deserialize JSON stream into POCO via Newtonsoft, perform LINQ on IEnumerable

Time:

Models:

get burn area map models v 8. Array of tasks to make asynchronous HttpClient calls to NWS API, deserialize JSON stream into POCO via Newtonsoft, perform LINQ on IEnumerable. Use grid point stored in db.

Time:

Models: