Uh oh!
There was an error while loading. Please reload this page.
[wasm] Add new simple benchmark sample - #51559
Conversation
The sample can be used for quick benchmarking when working on performance improvements. It runs the measurements per approximate time (default 5 seconds) and reports number of runs and time per call. At the end of run, output summary with lowest times per call and also `.md` table to make it easier to put resutls to github comments. So far it contains Json [de]serialization I was using recently. The Person class comes from Blazor benchmark. Example `.md` output: | measurement | time | |-:|-:| | Json, non-ASCII text serialize | 8.2941ms | | Json, non-ASCII text deserialize | 11.6508ms | | Json, small serialize | 0.2436ms | | Json, small deserialize | 0.3731ms | | Json, large serialize | 69.4267ms | | Json, large deserialize | 102.4038ms |
ghost
commented
Apr 20, 2021
Tagging subscribers to this area: @CoffeeFlux Issue DetailsThe sample can be used for quick benchmarking when working It runs the measurements per approximate time (default 5 seconds) and At the end of run, output summary with lowest times per call and also So far it contains Json [de]serialization I was using recently. Example
|
ghost
commented
Apr 20, 2021
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsThe sample can be used for quick benchmarking when working It runs the measurements per approximate time (default 5 seconds) and At the end of run, output summary with lowest times per call and also So far it contains Json [de]serialization I was using recently. Example
|
Uh oh!
There was an error while loading. Please reload this page.
Example .md output: | measurement | time | |-:|-:| | Exceptions, TryCatch | 0.0107us | | Exceptions, TryCatchThrow | 0.0064ms | | Exceptions, TryCatchFilter | 0.1136us | | Json, non-ASCII text serialize | 1.2292ms | | Json, non-ASCII text deserialize | 5.2554ms | | Json, small serialize | 0.1928ms | | Json, small deserialize | 0.2262ms | | Json, large serialize | 51.0495ms | | Json, large deserialize | 60.6860ms |
The sample can be used for quick benchmarking when working
on performance improvements.
It runs the measurements per approximate time (default 5 seconds) and
reports number of runs and time per call.
At the end of run, output summary with lowest times per call and also
.mdtable to make it easier to put resutls to github comments.So far it contains Json [de]serialization I was using recently.
The Person class comes from Blazor benchmark.
Example
.mdoutput: