fork(1) download
  1. from timeit import timeit
  2.  
  3. print(timeit('list(izip(xrange(100), xrange(100)))',
  4. 'from itertools import izip',
  5. number=500000))
  6.  
  7. print(timeit('zip(xrange(100), xrange(100))', number=500000))
Success #stdin #stdout 3.23s 7216KB
stdin
Standard input is empty
stdout
1.9288790226
1.2828938961