You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
332 B
Python
18 lines
332 B
Python
7 years ago
|
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
|
import os
|
||
|
import time
|
||
|
|
||
|
|
||
|
times = []
|
||
|
for x in xrange(5):
|
||
|
t0 = time.time()
|
||
|
os.spawnvp(os.P_WAIT, sys.argv[1], sys.argv[1:])
|
||
|
t = time.time() - t0
|
||
|
times.append(t)
|
||
|
print '+++', t
|
||
|
|
||
|
print 'all:', times
|
||
|
print 'min %s max %s diff %s' % (min(times), max(times), (max(times) - min(times)))
|