trying to improve timing accuracy to figure out why python identity is 3x faster than the C one...

Original commit message from CVS:
trying to improve timing accuracy to figure out why python identity
is 3x faster than the C one...
This commit is contained in:
David I. Lehn 2002-10-03 22:38:07 +00:00
parent c2cb0810d9
commit 5dc00dc590
2 changed files with 4 additions and 2 deletions

View file

@ -90,7 +90,8 @@ def check(f, n, b):
start = time.time()
ret = filter(pipe)
print '%s b:%d i:%d t:%f' % (f, b, n, time.time() - start)
end = time.time()
print '%s b:%d i:%d t:%f' % (f, b, n, end - start)
return ret
def main():

View file

@ -90,7 +90,8 @@ def check(f, n, b):
start = time.time()
ret = filter(pipe)
print '%s b:%d i:%d t:%f' % (f, b, n, time.time() - start)
end = time.time()
print '%s b:%d i:%d t:%f' % (f, b, n, end - start)
return ret
def main():