Just a small multiple crate to test tokio and smoll runtime. Each crate is designed to test one runtime to keep the solution as clean as possible. Lot of thing can be done to improve this thing (as developed inter package common function to format result in a file...)
The small app was developped in order to study and resolve some performance issues on the Etherage project
To use it, just run cargo with the name of the package (runtime-bench) that you want test.
Exemple:
Data that can be obtains with this solution:
List of future evolution...
- Clean the code with the DRY credo in mind
- Support a loop limit through argument
-l
or-limit
- Add a loop iteration display with argument
-d
or-debug
- Add more explicit comments
- Add new runtime test
- Add function to draw results in a plot
Active issues:
- Understanding the reason behind the random deadlock after N pass of loop ? (Maybe the "waiter task" is not ready ?)
- Understanding the inconsitant base (average) time measured between multiple app execution
$ mybin -l 666
Solution relased under the WTFPL version 2.