2010-05-01から1ヶ月間の記事一覧
tp_memberだと遅くね?通常版 bench1.py class Noddy(object): first = 2 last = 1 noddy = Noddy() d = dict() d["A"] = 1 def test1(): return d["A"] def test2(): return noddy.first if __name__=='__main__': from timeit import Timer t = Timer("tes…