How to benchmark the code's WASM execution performance?
I wrote a crate and want to use it in the runtime.
I want to know its WASM execution time in ms. How can I get that?
FRAME is not a stand-alone WASM benchmarking framework. You can use criterion or similar for that.
The FRAME benchmarking is only concerned about the Weight of calls, not primarily miliseconds.
You could sure put the logic into a minimal pallet and call that. This can work, but is really not the intended use-case of the FRAME benchmarking. If you want to optimize the performance of low-level code it is better to go with other tools.