Updated to pybench 2.0.

See svn.python.org/external/pybench-2.0 for the original import of that
version.

Note that platform.py was not copied over from pybench-2.0 since
it is already part of Python 2.5.
This commit is contained in:
Marc-André Lemburg 2006-06-13 18:56:56 +00:00
parent ef7fe5f228
commit 7d9743dd6a
20 changed files with 1240 additions and 649 deletions

View file

@ -3,9 +3,9 @@ from string import join
class ConcatStrings(Test):
version = 0.1
version = 2.0
operations = 10 * 5
rounds = 60000
rounds = 100000
def test(self):
@ -85,7 +85,7 @@ class ConcatStrings(Test):
class CompareStrings(Test):
version = 0.2
version = 2.0
operations = 10 * 5
rounds = 200000
@ -167,9 +167,9 @@ class CompareStrings(Test):
class CompareInternedStrings(Test):
version = 0.1
version = 2.0
operations = 10 * 5
rounds = 200000
rounds = 300000
def test(self):
@ -249,9 +249,9 @@ class CompareInternedStrings(Test):
class CreateStringsWithConcat(Test):
version = 0.1
version = 2.0
operations = 10 * 5
rounds = 80000
rounds = 200000
def test(self):
@ -324,9 +324,9 @@ class CreateStringsWithConcat(Test):
class StringSlicing(Test):
version = 0.1
version = 2.0
operations = 5 * 7
rounds = 100000
rounds = 160000
def test(self):
@ -387,7 +387,7 @@ if hasattr('', 'lower'):
class StringMappings(Test):
version = 0.1
version = 2.0
operations = 3 * (5 + 4 + 2 + 1)
rounds = 70000
@ -460,9 +460,9 @@ if hasattr('', 'lower'):
class StringPredicates(Test):
version = 0.1
version = 2.0
operations = 10 * 7
rounds = 80000
rounds = 100000
def test(self):