1 from pybench
import Test
3 class DictCreation(Test
):
11 for i
in xrange(self
.rounds
):
75 for i
in xrange(self
.rounds
):
78 class DictWithStringKeys(Test
):
81 operations
= 5*(6 + 6)
88 for i
in xrange(self
.rounds
):
164 for i
in xrange(self
.rounds
):
167 class DictWithFloatKeys(Test
):
170 operations
= 5*(6 + 6)
177 for i
in xrange(self
.rounds
):
253 for i
in xrange(self
.rounds
):
256 class DictWithIntegerKeys(Test
):
259 operations
= 5*(6 + 6)
266 for i
in xrange(self
.rounds
):
342 for i
in xrange(self
.rounds
):
345 class SimpleDictManipulation(Test
):
348 operations
= 5*(6 + 6 + 6 + 6)
356 for i
in xrange(self
.rounds
):
503 for i
in xrange(self
.rounds
):