fork(1) download
  1. from __future__ import print_function
  2. import timeit
  3. print(timeit.timeit('x[5:8]', setup='x = list(range(10))'))
Success #stdin #stdout 0.31s 10192KB
stdin
Standard input is empty
stdout
0.29082867689430714