假设我想对两个程序进行基准测试:foo.py和bar.皮耶.
Are a couple thousand runs and the respective averages of time python foo.py
and time python bar.py
adequate enough for profiling and comparing their speed?
Edit: Additionally, if the execution of each program was sub-second (assume it wasn't for the above), would time
still be okay to use?