-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Performance testing APIs are not designed rigorously, which can easily lead to unfair treatment by many frameworks.
I found the following problems:
- What the
/route returns is actually a Map or content waiting to be json encoded. Many frameworks here support it and usejson.encode /echoreads it from the body as JSON content. Here you need to use thejson.decodefunction/json_objThis is where theJSONperformance routing should really be verified
I ask this question because Dart's own JSON encoding/decoding is notoriously inefficient, and while there are alternatives in Dart, they are not commonly used.
And I found that only one of the reports of this performance test is for JSON data, but it is unfair to require all Dart frameworks to use json.encode and json.decode.
I have a few suggestions as follows:
/constant- used to test the matching performance of hard-coded routes/text- used to test the processing performance of plain text/json/encode- used to test JSON encoding performance/json/decode- used to test JSON decoding performance/form-data- used to test FormData decoding performance/dynamic-route/<param>- used to test dynamic route matching performance
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels