fork download
  1. from timeit import Timer as T
  2. def calc(n):
  3. return T("class Haha(object): pass").timeit(n)
  4.  
  5. for i in xrange(30):
  6. print calc(9000)
  7.  
Success #stdin #stdout 9.78s 11864KB
stdin
Standard input is empty
stdout
0.306253910065
0.315832138062
0.321688175201
0.312582969666
0.320753097534
0.316447019577
0.280982971191
0.294994115829
0.305132865906
0.314435005188
0.307101011276
0.314326047897
0.306295156479
0.310127019882
0.31486582756
0.31014585495
0.313544988632
0.305261135101
0.296423912048
0.286801815033
0.28321814537
0.309112071991
0.312996864319
0.306626081467
0.312669992447
0.310183048248
0.307832956314
0.317287921906
0.315722942352
0.309076786041