changeset 39567 | ee087f0d7db5 |
parent 39362 | 438f3932a432 |
child 39568 | 842cd0bdda75 |
--- a/contrib/perf.py Wed Sep 05 23:15:20 2018 -0700 +++ b/contrib/perf.py Fri Sep 07 12:14:42 2018 -0700 @@ -1904,6 +1904,11 @@ for i in xrange(sets): setseq.append(random.randint(0, sys.maxint)) + def doinserts(): + d = util.lrucachedict(size) + for v in setseq: + d.insert(v, v) + def dosets(): d = util.lrucachedict(size) for v in setseq: @@ -1935,6 +1940,7 @@ benches = [ (doinit, b'init'), (dogets, b'gets'), + (doinserts, b'inserts'), (dosets, b'sets'), (domixed, b'mixed') ]