Before running this script, please configure the following environment:
-
Python3.0+
-
BCC
sudo apt-get install bpfcc-tools linux-headers-$(uname -r) -
The wasm runtime you want to run, such as
After the environment is configured, you can run main.py with arguments.
python3 main.py --runtime=[wasm runtime] --source=[wasm code] --times=[times]
Then you can monitor the execution time of the specified program in the specified runtime.
The data will be stored in the .txt file in the /record directory