2018-04-02 07:30:06 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
2019-08-10 16:36:10 +00:00
|
|
|
import mitogen.core
|
|
|
|
|
2018-04-02 07:30:06 +00:00
|
|
|
|
|
|
|
times = []
|
2018-04-17 16:40:45 +00:00
|
|
|
for x in range(5):
|
2019-08-10 16:36:10 +00:00
|
|
|
t0 = mitogen.core.now()
|
2018-04-02 07:30:06 +00:00
|
|
|
os.spawnvp(os.P_WAIT, sys.argv[1], sys.argv[1:])
|
2019-08-10 16:36:10 +00:00
|
|
|
t = mitogen.core.now() - t0
|
2018-04-02 07:30:06 +00:00
|
|
|
times.append(t)
|
2018-04-17 16:40:45 +00:00
|
|
|
print('+++', t)
|
2018-04-02 07:30:06 +00:00
|
|
|
|
2018-04-17 16:40:45 +00:00
|
|
|
print('all:', times)
|
|
|
|
print('min %s max %s diff %s' % (min(times), max(times), (max(times) - min(times))))
|