1 from pybench
import Test
3 class SimpleIntegerArithmetic(Test
):
6 operations
= 5 * (3 + 5 + 5 + 3 + 3 + 3)
11 for i
in xrange(self
.rounds
):
155 for i
in xrange(self
.rounds
):
158 class SimpleFloatArithmetic(Test
):
161 operations
= 5 * (3 + 5 + 5 + 3 + 3 + 3)
166 for i
in xrange(self
.rounds
):
310 for i
in xrange(self
.rounds
):
313 class SimpleIntFloatArithmetic(Test
):
316 operations
= 5 * (3 + 5 + 5 + 3 + 3 + 3)
321 for i
in xrange(self
.rounds
):
465 for i
in xrange(self
.rounds
):
469 class SimpleLongArithmetic(Test
):
472 operations
= 5 * (3 + 5 + 5 + 3 + 3 + 3)
477 for i
in xrange(self
.rounds
):
621 for i
in xrange(self
.rounds
):
624 class SimpleComplexArithmetic(Test
):
627 operations
= 5 * (3 + 5 + 5 + 3 + 3 + 3)
632 for i
in xrange(self
.rounds
):
776 for i
in xrange(self
.rounds
):