pylib: add run_simulator runner#173
Conversation
ec01185 to
5a93bb0
Compare
Otherwise, this function does not handle multiple line output correctly. For example, if a simulator writes text to standard error for some reason.
|
Hi @nmeum Thanks for the PR. A useful addition. Could you update the documentation in Thanks for the contribution. |
|
Hi, good suggestion! I can also add documentation for I also just pushed an additional improvement to also use multiline regex search in |
This adds a Python module which is suitable for running the benchmarks within a simulator that doesn't not support a GDB stub and allows for a rough performance estimation of said simulator. The module is based on the existing
run_native.pymodule and has the same deficiencies (i.e. inaccurate measurements through the use of thetime(1)command). An alternative approach would be modifying therun_native.pymodule in away that a wrapper could be passed via an additional command-line flag (e.g../benchmark_speed.py --target-module run_native --wrapper 'my-fancy-simulator ...') the passed string would then also be inserted into thetime(1)command as proposed here.Usage example of the proposed
run_simulatormodule:Fixes #106