def main(args): num = int(args[1]) if len(args) > 1 else 5000000 lst = make_list(num) gc1 = gcreport.current_gc_time() t1 = time.clock() res = lst.filter(flt) t2 = time.clock() gc2 = gcreport.current_gc_time() t = (t2 - t1) * 1000 gc = (gc2 - gc1) * 1.0 print "0:RESULT-cpu:ms: %s\n0:RESULT-total:ms: %s\n0:RESULT-gc:ms: %s\n" % ( t, t, gc) assert not res.is_null() return 0
def main(args): if len(args) > 1: num = (min_depth - 1) + (int(args[1]) / 1000000) else: num = 18 gc1 = gcreport.current_gc_time() t1 = time.clock() res = python_tree(num) t2 = time.clock() gc2 = gcreport.current_gc_time() t = (t2 - t1) * 1000 gc = (gc2 - gc1) * 1.0 print "0:RESULT-cpu:ms: %s\n0:RESULT-total:ms: %s\n0:RESULT-gc:ms: %s\n" % (t, t, gc) assert res == E return 0