Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
has_key(key) -- Test whether the bucket contains the given key

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/tests/test_performance.py   experimental.catalogqueryplan(Download)
        start = time()
        for i in small:
            a = large.has_key(i)
        print "\nhas_key distributed %.6f" % (time()-start)
 
        start = time()
        for i in small:
            a = large.has_key(bigsize-1)
        start = time()
        for i in small:
            a = large.has_key(0)
        print "has_key start %.6f" % (time()-start)
 

src/e/x/experimental.btree-1.1/experimental/btree/tests/test_performance.py   experimental.btree(Download)
        start = time()
        for i in small:
            large.has_key(i)
        print "\nhas_key distributed %.6f" % (time()-start)
 
        start = time()
        for i in small:
            large.has_key(bigsize-1)
        start = time()
        for i in small:
            large.has_key(0)
        print "has_key start %.6f" % (time()-start)