Skip to content
Advertisement

Wrapper script that would record the execution time of another script with parameters

I have a wrapper script wrapper.py that would time the full execution of benchrun.py.

Let’s say I run the benchrun.py using this command:

python benchrun.py --host {host} -f {testfile} -t {number of threads} -s {mongo shell path}

What should I put in the wrapper script to run the benchrun.py script and get the execution time?

Advertisement

Answer

First, benchrun.py

JavaScript

wrapper:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement